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