aristanetworks/cvprac

modelName missing from searchTopology return data in 2023.1.0

mharista opened this issue · 3 comments

Original searchTopology API has the modelName missing (field is just an empty string) as of CVP 2023.1.0.

There is a new API /v3/searchTopology that has the the modelName populated as expected. There are assorted other field differences between the two APIs return data as well.

old searchTopology example return data.

{
  "keywordList": [],
  "total": 1,
  "netElementList": [
    {
      "modelName": "",
      "internalVersion": "4.30.2F",
      "systemMacAddress": "24:2d:a5:16:d2:0a",
      "serialNumber": "SN-veos1",
      "version": "4.30.2F",
      "fqdn": "veos1",
      "key": "24:2d:a5:16:d2:0a",
      "ztpMode": "false",
      "type": "netelement",
      "ipAddress": "192.168.0.10",
      "complianceIndication": "",
      "complianceCode": "0000",
      "deviceInfo": null,
      "lastSyncUp": 0,
      "unAuthorized": false,
      "deviceStatus": "Registered",
      "parentContainerId": "root",
      "containerName": "Tenant",
      "streamingStatus": "active",

      "isMLAGEnabled": "no",   # OLD FORMAT

      "tempAction": [],
      "taskIdList": []


      ALL BELOW FIELDS ARE MISSING FROM NEW V3 SEARCH TOPO API RETURN DATA

      "memTotal": 0,
      "bootupTimeStamp": 0,
      "memFree": 0,
      "architecture": "",
      "internalBuildId": "",
      "hardwareRevision": "",
      "isDANZEnabled": "no",
      "sslEnabledByCVP": false,
      "sslConfigAvailable": false,
      "dcaKey": "",
      
    }
  ],
  "containerList": [],
  "netElementContainerList": [
    {
      "netElementKey": "24:2d:a5:16:d2:0a",
      "containerKey": "root",
      "containerName": "Tenant"
    }
  ]
}

new /v3/searchTopology example output.

{
  "keywordList": [],
  "containerList": [],
  "netElementContainerList": [
    {
      "netElementKey": "24:2d:a5:16:d2:0a",
      "containerKey": "root",
      "containerName": "Tenant"
    }
  ],
  "netElementList": [
    {
      "modelName": "vEOS-lab",
      "internalVersion": "4.30.2F",
      "systemMacAddress": "24:2d:a5:16:d2:0a",
      "serialNumber": "SN-veos1",
      "version": "4.30.2F",
      "fqdn": "veos1",
      "key": "24:2d:a5:16:d2:0a",
      "ztpMode": "false",
      "type": "netelement",
      "ipAddress": "192.168.0.10",
      "complianceIndication": "",
      "complianceCode": "0000",
      "deviceInfo": "",
      "lastSyncUp": 0,
      "unAuthorized": false,
      "deviceStatus": "Registered",
      "parentContainerId": "root",
      "containerName": "Tenant",
      "streamingStatus": "active",
      "mlagEnabled": false,           # NAME CHANGE FROM mlagEnabled
      "hasZTR": false,                # NEW FIELD
      "tempAction": [],
      "taskIdList": []
    }
  ],
  "total": 1
}

Container info looks consistent.

New V3 API output:

{
  "keywordList": [],
  "containerList": [
    {
      "dateTimeInLongFormat": 1695315472185,
      "key": "root",
      "mode": "expand",
      "name": "Tenant",
      "root": true,
      "undefined": false,
      "userId": "cvp system"
    }
  ],
  "netElementContainerList": [],
  "netElementList": [],
  "total": 1
}

OLD SearchTopo:

{
  "keywordList": [],
  "total": 1,
  "netElementList": [],
  "containerList": [
    {
      "name": "Tenant",
      "key": "root",
      "root": true,
      "undefined": false,
      "userId": "cvp system",
      "dateTimeInLongFormat": 1695315472185,
      "mode": "expand"
    }
  ],
  "netElementContainerList": []
}