Hi,

yanglint actually validates the module just fine (at least the latest version) 
once the grammar errors are fixed. Namely, the spaces before ";" on lines 191 
and 199 are removed.

Regards,
Michal

On Wednesday, October 9, 2019 23:13 CEST, Mahesh Jethanandani 
<[email protected]> wrote: 
 
> Hi Balasz,
> 
> In general support of unions is poor across the tool sets that I have used. 
> It does not help that yanglint gives a completely different error.
> 
> I did try yanger, and that did not result in an error.
> 
> The other option is to move the default statement inside the grouping, which 
> seems to make the error go away.
> 
> Cheers.
> 
> > On Oct 9, 2019, at 8:01 AM, Balázs Lengyel 
> > <[email protected]> wrote:
> > 
> > Hello,
> > I was trying to validate the attached model. However pyang keeps 
> > complaining about refining a default for a leaf-list:
> >  
> > [email protected] 
> > <mailto:[email protected]>:184: error: 
> > "leaf-list" node 
> > "ietf-notification-capabilities::supported-excluded-change-type" cannot be 
> > refined with "default"
> >  
> > Why? According to https://tools.ietf.org/html/rfc7950#section-7.13.2 
> > <https://tools.ietf.org/html/rfc7950#section-7.13.2> “A leaf-list node may 
> > get a set of default values ...” 
> > .
> > Confdc accepts this. Could this be a bug in pyang ?
> > Regards Balazs
> >  
> > -- 
> > Balazs Lengyel                    Senior Specialist                       
> > Ericsson Hungary Ltd. 
> > Mobile: +36-70-330-7909              email: [email protected] 
> > <mailto:[email protected]>
> >  
> > <[email protected]>_______________________________________________
> > netmod mailing list
> > [email protected] <mailto:[email protected]>
> > https://www.ietf.org/mailman/listinfo/netmod 
> > <https://www.ietf.org/mailman/listinfo/netmod>
> Mahesh Jethanandani
> [email protected]
> 
> 
> 
 
 

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to