suzieq
suzieq copied to clipboard
summarize api returns different json when hostname is not found
On successful call I am getting
{ "example-namespace": { "deviceCnt": 1, "arpNdEntriesCnt": 12, "uniqueArpEntriesCnt": 12, "uniqueOifCnt": 9, "arpEntriesCnt": 12, "v6NDEntriesCnt": 0, "v6NDGlobalEntriesCnt": 0, "v6NDLLAEntriesCnt": 0, "remoteV4EntriesCnt": 0, "staticV4EntriesCnt": 0, "remoteV6EntriesCnt": 0, "staticV6EntriesCnt": 0, "failedEntriesCnt": 0, "failedV4EntriesCnt": 0, "failedV6EntriesCnt": 0 } }
and this kind of response is returned when api does not match the hostname
` "namespace": {
}, "hostname": {
}, "vrf": {
}, "prefix": {
}, "nexthopIps": {
}, "oifs": {
}, "protocol": {
}, "source": {
}, "preference": {
}, "ipvers": {
}, "action": {
}, "timestamp": {
}, "weights": {
}, "prefixlen": {
}, "numNexthops": {
}, "routeTag": {
}, "asPathList": {
}, "validState": {
}, "hardwareProgrammed": {
}, "metric": {
}, "statusChangeTimestamp": {
}, "active": {
} }`
It looks like each route/arpnd/mac..../summarize api behaves like that
Expected output should probably return same structure or return 404