Hello, I tried testing the following statements:
deviation /nacm:nacm/nacm:enable-nacm {
deviate add {
config false; } }
deviation /nacm:nacm/nacm:rule-list {
deviate add {
min-elements 1; } }
In nacm both the config and the min-elements are absent, so their default
meaning is true. I actually tried both add and replace in deviate.
I got rather confusing results whether the add/replace variant of deviate
should be accepted or rejected because the property already exists or does
not yet exist.
Pyang 2.0.2 locally:
Config=false add-NOK replace-OK
Min-elements=1 add-OK replace-NOK
YANG-Validator pyang 2.0 & confdc
Config=false add-OK replace-OK
Min-elements=1 add-OK replace-NOK
YANG-Validator yanglint
Config=false add-OK replace-OK
Min-elements=1 add-OK replace-OK
IMHO the tools should always check the property, so even if the statement is
not present the properties config=false and min-elements=0 ARE present. So
add should be rejected and replace accepted.
Regards Balazs
--
Balazs Lengyel Senior Specialist
Ericsson Hungary Ltd.
Mobile: +36-70-330-7909 email: [email protected]
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
