Balazs Lengyel <balazs.leng...@ericsson.com> writes:
[edited]
> container myThing {
>     leaf enabled { type boolean;}
>     action start {
>        input {
>           // optional so I can just ignore it
>           leaf dummy-leaf-never-use-it { type empty; }
>           must "../enabled = 'true'";
>        }
>
> My question is why do I need to do this ugly solution? Is there a better 
> way?
> Is there a reason why I really need the dummy leaf?
> Is there a reason why the rfc does not allow an input field with a 
> single must statement in it?

I suspect that is because nobody envisioned that an input statement with
only a 'must' could be useful.  You've provided a counterexample to that
idea.

Dale

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to