-
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
Browsing NX-OS 9k installed yang models with RESTconf #270
Comments
Jean-Christophe, Apologies for the long delay in getting back to you. Unfortunately, I was on vacation when this query arrived, so getting back to it now. The general form for a URL for a query against the openconfig-interfaces model for config content should look like:
The YANG module name is used to scope the top-level node I can confirm that the two examples you show above would, indeed, generate With respect to host discovery, we try to support what you see defined in Section 3.1 of RFC 8040. For example, on a CSR1Kv running IOS-XE 16.6.1, I can do a query like:
...and get back:
I can then dispatch a query such as:
And see:
This tells me that the device, under
...which would give me a response something like (again, from a CSR1Kv as I don't have a NX-OS device to hand):
Hope this helps. Please feel free to get back to me with any further queries. Cheers, Einar |
Thanks a lot for your clear & detailed answer @einarnn
|
Jean-Christophe, After talking to the NX-OS team, only the "content" option is supported. We are looking at what the roadmap may be for the others, namely:
IIRC, the I'm afraid at this time I don't have a timescale for when we will have a public roadmap. Are there any of the above URL options that are particularly interesting to you for your use cases? Cheers, Einar |
@einarnn |
On IOS-XE However, on NX-OS This is a fundamental issue as this feature must be supported, according to RFC 6415. Is |
@jean-christophe-manciot, I’ve passed this issue on to the NX-OS engineering team responsible for RESTCONF. |
NX-OS 9kv 7.0(3)I6(1)
Hello @einarnn
I'm having a hard time figuring out the URI(s) which must be used to attain the openconfig resources supported by this device.
Using yang-explorer, I can confirm that it does support openconfig:
I can also GET all vendor specific data returned by
http://ip_address/restconf/data/Cisco-NX-OS-device:System?content=config
: Cisco-NX-OS-device:System.ymlBut what URI should I use to GET the openconfig data?
I tried all sorts of URIs, including
http://ip_address/restconf/data/Cisco-NX-OS-device:Openconfig?content=config
http://ip_address/restconf/data/Openconfig?content=config
Each time, I receive a
400: Bad Request
.Generally speaking, is there a method to automatically discover the URI of any Yang resource on any Cisco platform?
The text was updated successfully, but these errors were encountered: