-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrectly formatted json data from openconfig data model #301
Comments
That doesn't look healthy. I'll investigate. Cheers, Einar |
Jean-Christophe, I've had a chance to try out NX-OS 7.0(3)I6(2) on a real N9K, and below is the result of a get against openconfig-interfaces, which, as you can see, looks ok. There is one problem, however, which is the Accept MIME type. I had to use The developers told me that some fixes to the JSON output have gone in. When I look at the output you have above, my first thought was that it was a simple translation of the XML output to JSON. Are you able to use a newer release? Cheers, Einar
|
Hey Einar, |
Hello @einarnn
With:
NX-OSv9K 7.0(3)I6(1)
If I list OpenConfig interfaces with a RESTconf GET at
restconf/data/openconfig-interfaces:interfaces?content=config
, I get:When saving the data to nice yaml or nice json with ansible, it appears that there may be duplicate keys so that only the last fields are kept:
The whole discussion is available here about what I originally thought to be an ansible issue.
The text was updated successfully, but these errors were encountered: