Using a NETCONF NED
NETCONF can be used as a NED instead of a CLI-based NED. The built-in NED for IOS-XR does not appear to support NETCONF, however you can easily create your own NETCONF NED by pulling the YANG modules from the device itself.
Note that you may need an XRv9K for this to work properly. I have only tested this on XRv9K.
First we connect to the XRv9K using device-type cli.
devices device xr1
device-type cli ned-id cisco-ios-xr...
connectOn the XRv, we must enable NETCONF:
ssh server v2
ssh server netconf
netconf-yang agent ssh
netconf agent ttyIn NSO, fetch SSH host keys and do a sync from:
devices device xr1 ssh fetch-host-keys
devices device xr1 sync-fromEnable devtools and change the device-type to netconf
We then fetch the YANG module list from the XRv:
Build the NED and export it:
Transfer it to the packages dir
In NSO reload packages and use the new NED
Reference
https://www.zhaocs.info/new-install-nso-and-connect-with-xr-by-cli-netconf-ned.html
https://developer.cisco.com/docs/nso/guides/ned-development/#netconf-ned-development
Last updated