Hello,
I don't have a problem with the when in rpc/action as it is a simple
case, it is meaningful understandable. I have problems with the
undespecified behavior of when in edit-config and with the MANY!
complicated "corner" cases. I would love to just prohibit 90% of
them.
regards Balazs
On 2015-10-16 17:03, Andy Bierman
wrote:
Hi,
I find all this fretting over when-stmt corner-cases to be
a waste of time.
I certainly have no intention of spending 100s of hours
coding for corner-cases
that have no operational value whatsoever. When-stmt has
always been full
of problems that exist on paper but not in real servers.
There is no need for the YANG spec to point out that the
constraints
only apply to YANG. That is self-evident.
Why doesn't when-stmt apply to a plain rpc?
rpc plot-point {
input {
leaf 3d {
type boolean;
default false;
}
leaf X { type uint32; }
leaf Y { type uint32; }
leaf Z {
when "../3d";
type uint32;
}
}
}
Are you saying that the when-stmt for Z is not allowed?
Or that it gets ignored and not enforced?
IMO this section was rather clear -- it applies to
when-stmt
in the RPC input.
Andy
--
Balazs Lengyel Ericsson Hungary Ltd.
Senior Specialist
ECN: 831 7320
Mobile: +36-70-330-7909 email: [email protected]
|
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod