Saving Config via RESTCONF on NXOS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2021 07:07 PM
# NETCONF payload <copy_running_config_src xmlns="http://cisco.com/ns/yang/cisco-nx-os-device"> <startup-config/> </copy_running_config_src>
- Does RESTCONF in NXOS implement the RPCs defined in the module?
- If so, could someone let me know to what URI I should be sending my requests to? With IOS XE, there's a separate URI for the RPCs (HOST/restconf/operations), so wondering if this is also the case with NXOS
- Labels:
-
Network Programmability
-
NX-OS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2021 11:54 AM
Hi @techvisionuhd,
I'm not an expert in with NX-OS, but I want to offer some resources I found, which may help you:
- Cisco NX-OS RESTConf - RESTCONF Agent
- (External GitHub Repo) - Browsing NX-OS 9k installed yang models with RESTconf (discusses which URI to send requests to)
- (External Blog) Exploring IOS-XE and NX-OS based RESTCONF Implementations with YANG and Openconfig (discusses the RPCs)
I hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2021 06:29 PM
Thanks Alex. However, those resources were useful for the RESTCONF cisco-nx-os-device module and the openconfig modules. However, the copy_running_config_src rpc doesn't seem to follow the same URI scheme that I use to interact with other components of those two modules.
Strangely, I can't find any documentation online regarding using the copy_running_config_src action via RESTCONF, and the only references I see are for Netconf. I'm hoping if you could confirm whether this feature just isn't supported in RESTCONF on NX-OS?
And if it isn't supported, what is the suggested way to save the configuration on NX-OS via RESTCONF?
