Re: [netmod] PYANG refine fault ?

2019-10-09 Thread Andy Bierman
Hi,

The YANG looks valid.
yangdump-pro reports 1 warning:


Warning: Revision date in the future (2019-10-10)
ietf-notification-capabilit...@2019-10-10.yang:90.3: warning(1021):
revision date in the future

*** /home/andy/Desktop/ietf-notification-capabilit...@2019-10-10.yang
*** 0 Errors, 1 Warnings

Andy


On Wed, Oct 9, 2019 at 2:14 PM Mahesh Jethanandani 
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 <
> balazs.lengyel=40ericsson@dmarc.ietf.org> wrote:
>
> Hello,
> I was trying to validate the attached model. However pyang keeps
> complaining about refining a default for a leaf-list:
>
> ietf-notification-capabilit...@2019-10-10.yang: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 “A 
> leaf-list node may get a set of default values ...”
>
> .
> Confdc accepts this. Could this be a bug in pyang ?
> Regards Balazs
>
> --
> Balazs LengyelSenior Specialist
> Ericsson Hungary Ltd.
> Mobile: +36-70-330-7909  email: balazs.leng...@ericsson.com
>
> 
> ___
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>
> Mahesh Jethanandani
> mjethanand...@gmail.com
>
>
>
> ___
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


Re: [netmod] PYANG refine fault ?

2019-10-09 Thread Mahesh Jethanandani
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 
>  wrote:
> 
> Hello,
> I was trying to validate the attached model. However pyang keeps complaining 
> about refining a default for a leaf-list:
>  
> ietf-notification-capabilit...@2019-10-10.yang 
> :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 
>  “A leaf-list node may 
> get a set of default values ...” 
> .
> Confdc accepts this. Could this be a bug in pyang ?
> Regards Balazs
>  
> -- 
> Balazs LengyelSenior Specialist   
> Ericsson Hungary Ltd. 
> Mobile: +36-70-330-7909  email: balazs.leng...@ericsson.com 
> 
>  
> ___
> netmod mailing list
> netmod@ietf.org 
> https://www.ietf.org/mailman/listinfo/netmod 
> 
Mahesh Jethanandani
mjethanand...@gmail.com



___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod


[netmod] PYANG refine fault ?

2019-10-09 Thread Balázs Lengyel
Hello,

I was trying to validate the attached model. However pyang keeps complaining
about refining a default for a leaf-list:

 

ietf-notification-capabilit...@2019-10-10.yang: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 “A
leaf-list node may get a set of default values ...” 

..

Confdc accepts this. Could this be a bug in pyang ?

Regards Balazs

 

-- 

Balazs LengyelSenior Specialist
Ericsson Hungary Ltd. 

Mobile: +36-70-330-7909  email: balazs.leng...@ericsson.com

 



ietf-notification-capabilities@2019-10-10.yang
Description: Binary data


smime.p7s
Description: S/MIME cryptographic signature
___
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod