-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
7.0.0rc1, 7.0.5
-
None
-
None
I had a http agent restconf request that worked in 6.4 and stopped working when I upgraded to 7.0rc1
Steps to reproduce:
- Create a HTTP agent item with the following. This request polls power supply data from Nokia NSP Restconf API.
- https://<URL>/restconf/operations/nsp-inventory:find
- Unknown macro: { "nsp-inventory}
}
- Headers: Content-Type: application/json , Authorization: <Bearer "Token">
- Request Type: Post
- Type of Information: Log
Result:
Response code "400" did not match any of the required status codes "200"
{"ietf-restconf:errors":{"error":[
]}}
See Screenshots
Expected:
See Screenshots
{"nsp-inventory:output":{"data":[{"@":
{"nsp-model:schema-nodeid":"/nsp-equipment:network/network-element/hardware-component/power-supply","nsp-model:identifier":"/nsp-equipment:network/network-element[ne-id='<IP ADDRESS>']/hardware-component/power-supply[component-id='shelf=1/powersupply=1']","nsp-model:sources":["fdn:realm:sam:network:<IP ADDRESS>:shelf-1:psTray-1"]},"ne-name":"<HOSTNAME>","part-number":"<PART NUM>","name":"Power Supply Tray - 1/1","oper-state":"enabled","state-reason":[],"mfg-date":"08/17/2020","admin-state":"unlocked","serial-num":"<SERIAL NUM>"},{"@":
{"nsp-model:schema-nodeid":"/nsp-equipment:network/network-element/hardware-component/power-supply","nsp-model:identifier":"/nsp-equipment:network/network-element[ne-id='<IP ADDRESS>']/hardware-component/power-supply[component-id='shelf=1/powersupply=2']","nsp-model:sources":["fdn:realm:sam:network:<IP ADDRESS>:shelf-1:psTray-2"]},"ne-name":"<HOSTNAME>","part-number":"<PART NUM>","name":"Power Supply Tray - 1/2","oper-state":"enabled","state-reason":[],"mfg-date":"08/17/2020","admin-state":"unlocked","serial-num":"<SERIAL NUM>"}],"end-index":1,"start-index":0,"total-count":2}}