02-05-2018 11:00 AM - edited 03-01-2019 04:05 AM
Hi all,
I just finished compiling the netconf ned for IOS-XE. It appears that the yang models on the device use the same urn/prefix as the CLI NED. In the XE Yang models, this is referenced in several places.
Given the number of references, it would appear that the two could not be easily used on the same system without significant rewriting of one of these two NEDs.
Could someone confirm that using them both on the same system would not be realistically possible or is there some other way around this?
>>> System upgrade is starting.
>>> Sessions in configure mode must exit to operational mode.
>>> No configuration changes can be performed until upgrade has completed.
>>> System upgrade has been cancelled.
Error: Duplicate prefix "ios" used in 'http://cisco.com/ns/yang/Cisco-IOS-XE-native' and 'urn:ios'
Thanks,
Marty
Solved! Go to Solution.
02-06-2018 02:58 AM
You can work around this issue by editing the YANG so that one of the conflicting modules gets a different prefix. Most YANGs never use the local prefix within the module, and if it is used locally, just update those references to the same new prefix. If you have service code or templates that uses the changed prefix, that needs to be updated as well.
02-05-2018 02:32 PM
Hi,
There is a new NSO feature slated for 4.7 (mid 2018) that will allow multiple NED versions to on the same NSO instance. So that should help resolve the namespace conflicts.
I have a customer that is exploring using LSA to mitigate such issues.
Thanks.
02-06-2018 02:58 AM
You can work around this issue by editing the YANG so that one of the conflicting modules gets a different prefix. Most YANGs never use the local prefix within the module, and if it is used locally, just update those references to the same new prefix. If you have service code or templates that uses the changed prefix, that needs to be updated as well.
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