API inconsistencies between SwitchPortStatuses and LldpCdp

RaphaelL
Kind of a big deal
Kind of a big deal

API inconsistencies between SwitchPortStatuses and LldpCdp

Hi ,

 

I find it a bit odd that a dedicated endpoint for LldpCdp doesn't provide all the raw info while a SwitchPortStatuses endpoint does provide it. 

 

I understand that LldpCdp also have to support MXs which may not show the raw cdp/lldp packet but it would have been way easier for us to provide the same info from both endpoint. ( More info = the better ) 

 

getDeviceSwitchPortsStatuse  on a MS355 ( irrelevant info was omited for simplicity )

[
   {
      "portId":"1",
      "enabled":true,
      "status":"Connected",
      "isUplink":false,
      "errors":[
         
      ],
      "warnings":[
         
      ]
      "cdp":{
         "platform":"Cisco ATA 187",
         "deviceId":"ATA08cc68e86e8d",
         "portId":"Port 1",
         "address":"10.92.133.234",
         "version":"ATA 9-2-3SR1-1",
         "capabilities":"Host, VoIP phone"
      }
   },
   {
      "portId":"2",
      "enabled":true,
      "status":"Connected",
      "isUplink":false,
      "errors":[
         
      ],
      "warnings":[
         
      ]
      "cdp":{
         "platform":"Cisco IP Phone 7945",
         "deviceId":"SEP2C3ECF778925",
         "portId":"Port 1",
         "address":"10.92.133.223",
         "version":"SCCP45.9-4-2SR3-1S",
         "capabilities":"Host, VoIP phone, Two-port MAC relay"
      }
   }
]

 

 

getDeviceLldpCdp on a MS355

{
   "ports":{
      "1":{
         "cdp":{
            "sourcePort":"1",
            "deviceId":"ATA08cc68e86e8d",
            "address":"10.92.133.234",
            "portId":"Port 1"
         }
      },
      "2":{
         "cdp":{
            "sourcePort":"2",
            "deviceId":"SEP2C3ECF778925",
            "address":"10.92.133.223",
            "portId":"Port 1"
         }
      }
   },
   "sourceMac":"f8:9e:28:ed:f2:03"
}

 

 For CDP , seems to be missing 'platform' , 'version' and 'capabilities' 

 

 

Thanks ! 

0 REPLIES 0
Get notified when there are additional replies to this discussion.