netmod-wg / yang-next

Feature requests for future versions of YANG
6 stars 0 forks source link

Let a presence container have a default presence? #145

Open kwatsen opened 1 month ago

kwatsen commented 1 month ago

A presence container is like a leaf of type boolean. Leafs can have a default have, but not P-containers, why?

BalazsLengyel commented 1 month ago

IMHO explicit boolean enable/disable leafs are a better solution. We had problems with people defining properties of a protocol, not realizing, that by defining a leaf in the container (and hence the container too) they actually enabled the protocol too.

janlindblad commented 1 month ago

Leaf type empty have a similar problem with an implicit default of "absent".

kwatsen commented 3 weeks ago

Andy: manditory -ness is blocked by YANG list because items must be created.