Balazs Lengyel <[email protected]> wrote:
> Hello,
> Some more corner cases for embedded choices, with my solutions in
> them. How an average operator or even model implementer would figure
> these out is anyone's guess. regards Balazs
>
> choice scen9 {
> case A {
> choice subChoiceA {
> mandatory true; // this mandatory has absolutely no
> effect as the case A above might not exist
> case A {
> leaf scen12-num1 { type uint8; default 1; } // this
> default has absolutely no effect
> // if the leaf exists it has a value if
> you delete it the whole choice scen9
> becomes empty
> }
> case B {
> leaf scen12-num2 { type uint8; }
> }
> }
> }
> case B {
> leaf scen12-num1 { type uint8; }
> }
> }
Note that this is similar to a simple choice:
choice x {
case a {
leaf foo {
type int32;
default 42;
}
}
}
/martin
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod