Hello,
In the example provided in section 7.9.3 of RFC7950, is it legal to
redefine the default case like below?
container transfer {
choice how {
default manual; // redefined
case interval {
leaf interval {
type uint16;
units minutes;
default 30;
}
}
case daily {
leaf daily {
type empty;
}
leaf time-of-day {
type string;
units 24-hour-clock;
default "01.00";
}
}
case manual {
leaf manual {
type empty;
}
}
}
}
What is expected to happen when an <edit-config> request creates the
'transfer' container without providing any data for the choice 'how'?
Since an empty leaf conveys information by its presence or absence, and
cannot have a default value, is it correct to assume that the 'manual'
leaf will be present, even though it was not explicitly created by the
<edit-config> request?
Can someone clarify?
Yves
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod