On Mon, Jun 29, 2015 at 2:40 PM, Phil Shafer <[email protected]> wrote:

> Juergen Schoenwaelder writes:
> >And my understanding is that the list foo defined above will never
> >have an instance, correct? I assume decent compilers will continue to
> >create warnings when they can decide that a list will never have any
> >instances. (And yes, there are other ways to construct such lists, so
> >I am OK with removing a constraint preventing a specific case of such
> >useless lists.)
>
> Doesn't removing the prohibition require us to accept such nonsense?
>
>

No - using 'empty' as a key allows 1 instance, same as a container.
It may be pointless bug not harmful.

We currently allow things in YANG 1.1 such as "mandatory true"
on an enumeration leaf, yet if-feature is allowed on enum-stmt so
it could be the server will not actually accept any of the values,
yet the leaf is still mandatory.  (At least for bits the
server will accept an empty bit set, but not enumeration).


Thanks,
>  Phil
>
>
Andy


> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod
>
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to