cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Building Netconf NED from only some yang files

nso20
Beginner
Beginner

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

2 REPLIES 2

nso20
Beginner
Beginner

rogaglia
Cisco Employee
Cisco Employee

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: