Hi all,

In YANG 1.1 we can specify defaults for leaf-lists.

I assume that means there is no way for a NETCONF client to explicitly 
create/declare an empty list (i.e. a list with no values) when there is a 
default (i.e. declare that no values are to be in use) ?

In that case, if the ability to explicitly say "no values are in use" in a 
leaf-list with defaults would have to be done in some other way, e.g. perhaps 
using a choice like this:

choice source {
    case source {
        leaf-list source { ...  default "x"; }
    }
    case none {
        leaf no-sources { type empty; }
    }
}

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

Reply via email to