API issue with cnWave60 devices

I’m using the cnMaestro API to access cnwave devices, and ran across this anomaly: When calling the /devices API, the ipv6 field is not returned unless I specify that I also want the ip field (useless with cnWave, as they are all blank).

Request: https://[redacted]/api/v2/devices?fields=name%2Cmac%2Cipv6%2Cmode%2Csite&type=cnwave60

Response:

...  "data": [
    {
      "name": "POP Node 1",
      "mac": "00:04:56:[redacted]",
      "mode": "DN",
      "site": "Test Site"
    },
    {
      "name": "#482 CN Radio",
      "mac": "00:04:56:[redacted]",
      "mode": "CN",
      "site": "#482 Test Customer 1"
    },
    {
      "name": "#4953 CN Radio",
      "mac": "00:04:56:[redacted]",
      "mode": "CN",
      "site": "#4953 Test Customer 2"
    }
  ]

Request: https://[redacted]/api/v2/devices?fields=name%2Cmac%2Cip%2Cipv6%2Cmode%2Csite&type=cnwave60 (ip included)

Response:

 "data": [
    {
      "name": "POP Node 1",
      "mac": "00:04:56:[redacted]",
      "mode": "DN",
      "ip": "",
      "ipv6": "1234:9ec0:c1::1",
      "site": "Test Site"
    },
    {
      "name": "#482 CN Radio",
      "mac": "00:04:56:[redacted]",
      "mode": "CN",
      "ip": "",
      "site": "#482 Test Customer 1"
    },
    {
      "name": "#4953 CN Radio",
      "mac": "00:04:56:[redacted]",
      "mode": "CN",
      "ip": "",
      "site": "#4953 Test Customer 2"
    }
  ]

Is this expected behavior?

This is an issue from cnMaestro API. The fix for this will be available in 3.1.0 release. Thank you for reporting.

1 Like