cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
354
Views
0
Helpful
0
Replies

default statement is missing in augmented files

sekamara
Cisco Employee
Cisco Employee

Hi,

 

We are compiling openconfig yang files with ncsc command.  some openconfig yang files are having default statements like below.  And we have deviations file to delete default property.  But during compilation we are getting the below error

If we compile the files without --ncs-apply-deviations compilation is fine, but with this flag it throws error

 

"augmented/cisco-xr-openconfig-interfaces-deviations@2016-05-16.yang:46: error: the 'default' property with argument 'true' does not exist in the target node"

 

openconfig-interfaces.yang :

leaf enabled {
type boolean;
default "true";

 

deviation file :

deviation "/oc-if:interfaces/oc-if:interface/oc-if:config/oc-if:enabled" {
deviate delete {
default "true";
}
}

 

Augmented file :

leaf enabled {
type string;
// NCS drop default statement
description

 

Could anyone provide your suggestions on the above scenario

 

Thanks

Senthil

0 Replies 0
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 NSO Developer community: