Balazs Lengyel je 6.10.2015 ob 14:32 napisal:
Hello,
How is the list's unique statement evaluated/enforced if some of the
leafs specified in the unique statement don't exist in the data tree.
list mylist {
unique att1;
leaf att1 {}
}
att1 is not mandatory. Can I have two list entries where att1 does not
exist?
What if when or choice is the reason why the leaf does not exist?
Is this described in the RFC?
7.8.3.
The "unique" constraint specifies that the combined values of all the
leaf instances specified in the argument string, including leafs with
default values, MUST be unique within all list entry instances in
which all referenced leafs exist. The constraint is enforced
according to the rules in Section 8.
Note the "instances in which all referenced leafs exist".
Jernej
regards Balazs
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod