hi i have a yang
container a{
choice id{
default b;
case b{
leaf b{
type empty;}}
case c{
leaflist d {
leaf e {
type uint16;}}
}
}
i wrote a deviation to delete the default value for choice id
i want to write a deviation to raise an error-message if we try to configure choice as case b
can some one help me in writing that deviation
It probably makes more sense too - doesn’t seem to be much point allowing ‘b’ to be set, only to reject it at commit. (Or to put it differently, it’s very strange to have must "not(.)" on any node…) But anyway, deviation in a separate module works fine for me (with ConfD-7.2.1, but I don’t think that is required) - @mnovak, how did you compile for that case?