Hi Balazs,

Is this for the NETMOD list, or should bugs be filed against the misbehaving 
tools?

Kent


> On Oct 22, 2019, at 6:56 AM, Balázs Lengyel 
> <[email protected]> wrote:
> 
> 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] 
> <mailto:[email protected]>
>  
> _______________________________________________
> netmod mailing list
> [email protected] <mailto:[email protected]>
> https://www.ietf.org/mailman/listinfo/netmod 
> <https://www.ietf.org/mailman/listinfo/netmod>
_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to