ConfD User Community

Is it possible to delete a default value for a leaf using "deviate delete"


#1

leaf foo {
type int32;
default 42;
}

deviation /foo {
deviate delete {
default 42;
}
}

will this deviation work…?


#2

Yes, this deviation will work. However, you will typically put the deviation statement in a separate annotation YANG module. You can always try this out by creating your own ConfD project or by modifying an existing example in the ConfD example collection set.


#3

Thanks a lot Waitai :slight_smile: