09-26-2018 04:30 AM - edited 09-26-2018 04:32 AM
Hi
I have a Cisco CSR1000V version 16.7.2 as a device in my NSO. I've built a netconf package for it with the pioneer package. The connection is working and with an empty config on the router, the sync-from also works.
But if I have a BGP config on that router like the following, an error appears.
CSR1000V Config:
csr1000v-nso#sh run | s router bgp
router bgp 65500
bgp log-neighbor-changes
!
address-family ipv4
neighbor ...
exit-address-family
NSO Sync:
admin@ncs# devices device csr1000v sync-from
result false
info illegal reference devices device csr1000v config network-instances network-instance default tables table BGP IPV4 config protocol
If my interpretation of the error message is correct, that means that the config on the device does not match with the Yang model I downloaded from the router. Is that correct?
Any advice how to solve that issue?
09-26-2018 04:41 AM
Hi,
You are most probably right. Typically, there is a "must"/"when" expression that is not valid with the current configuration.
You could edit the YANG model and re-compile the NETCONF NED file. Alternative, the XE team has been pushing into a GIT repository "bug fixing" versions of these YANG models that you can download here: https://github.com/YangModels/yang/tree/master/vendor/cisco/xe . These modules may have fixed your problem but if not, please issue a TAC ticket for the XE team to take a look of them.
Roque
09-27-2018 12:12 AM
Thank you for the quick answer.
I just made another test with IOS version 16.9.1 and there it works. Seems to be an issue in the 16.7 train.
09-27-2018 05:09 AM
The XE team has put in a good effort to get the OpenConfig YANG into usable shape, but apparently something is not working correctly in the translation from native to OC config. I'd suggest that you file a bug report on the CSR. Be sure to include the exact native config when you do, and the sync-from command with the error message you showed here.
03-05-2021 12:15 PM
I think I'm running into a similar issue. I'm trying a sync-from from an ASR 920 running 16.12.1 and get the following error attached. Any idea how I can explore what part of the config or YANG model is causing this? I created the NED by pulling the YANG models directly off this device, which is the reference device for the NED.
03-10-2021 05:29 AM
I resolved this by removing all openconfig models when creating the NED as this was an issue with openconfig-system.yang and/or openconfig-alarms.yang
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide