12-06-2020 06:37 AM
Hello,
I built a netconf NED with the yang files:
admin@ncs# show netconf-ned-builder project mycisco_ned 1.0 module status
NAME REVISION STATUS
-------------------------------------------------------------------
Cisco-IOS-XE-features 2019-10-01 selected,downloaded
Cisco-IOS-XE-interface-common 2019-11-01 selected,downloaded
Cisco-IOS-XE-interfaces-oper 2019-11-01 selected,downloaded
Cisco-IOS-XE-native 2019-11-01 selected,downloaded
Cisco-IOS-XE-types 2019-11-01 selected,downloaded
Cisco-IOS-XE-yang-interfaces-cfg 2019-05-21 selected,downloaded
cisco-semver 2019-03-20 selected,downloaded
ietf-inet-types 2013-07-15 selected,downloaded
ietf-yang-types 2013-07-15 selected,downloaded
And could do partial-sync:
admin@ncs# devices partial-sync-from path [ /devices/device[name='mycsr']/config/native ]
sync-result {
device mycsr
result true
}
admin@ncs(config)# do show running-config devices device mycsr config
devices device mycsr
native ip domain name cisco.com
I would expect to set any configuration parameter inside native but have the below error:
admin@ncs(config)# devices device mycsr config native ip domain name mydomain.com
admin@ncs(config-config)# commit
Aborted: Network Element Driver: device mycsr: out of sync
12-07-2020 12:48 AM
12-07-2020 02:24 AM
When working with "partial-sync-from", you are expecting NSO and the device to be out-of-sync. Therefore, you should add some commits flags to set this behavior. Something like "commit no-overwrite" or "no-out-of-sync-check", depending of the behavior you are looking for.
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