Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id B0F61120B33
 for <netmod@ietfa.amsl.com>; Wed,  9 Oct 2019 14:30:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level: 
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key)
 header.d=yumaworks-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44])
 by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id LmCzzUiAdy93 for <netmod@ietfa.amsl.com>;
 Wed,  9 Oct 2019 14:30:05 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com
 [IPv6:2a00:1450:4864:20::232])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by ietfa.amsl.com (Postfix) with ESMTPS id 0058412084F
 for <netmod@ietf.org>; Wed,  9 Oct 2019 14:30:04 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id b20so3994049ljj.5
 for <netmod@ietf.org>; Wed, 09 Oct 2019 14:30:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=yumaworks-com.20150623.gappssmtp.com; s=20150623;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=CMZWLlHm2SVIj9eMxxBJ/e37KXzVa7pgZrrQzuep9bc=;
 b=c87mgOR+TGVNOEzB83+isqnstFV/EFtYzy/JbnmPBiuVm6L3wlO/ynbNF0cTHF1TFH
 nmx0osMeTI9ra5FUCQ+MSzEceMz6ZllmGySL60Ul7cvmkUrs4zwkaP9tXNewUvxceoBh
 aNKj2FPdZtSUSVL0PBhoFfiJmfZliNdOc+QIzXGUOUKyn73nro+WNeM9ORhBDofRk3i0
 MLgXxeyLs3eiyiOFZibJfsU6Xo1kf+mpi0uP8aYMMVtFEPdraxZ5DOArnwsSpW45QWGm
 MVsPk3HXtpB1BdKq+ndsweAbg4WzIKvdFTJhvfnn5UqCz9h+OcfRVj0EW7cEr11Ktia8
 6HEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=CMZWLlHm2SVIj9eMxxBJ/e37KXzVa7pgZrrQzuep9bc=;
 b=hj6rAmICld/w4t7JDBfmI0PUEBV0cMUeAAALkmfjm2xjOx+VvFuEUQnePvtcXYPn0C
 DzloO/vwQLVivKPGYS02uMXLo1KrWSteaDhWuA4brygC1AVqywNYPzyrV9utLFITuxpw
 IGFPamxIHSNZFuWHGUEvFOaN6/QDGNQG/brjmjQOyRmhS+pyct2QZgQ1aQ2KutqkweXb
 3o3LDkJB4B6ERPywXh0NWBH2te017SQDP5tZ7jyQqIzuQBRUGKAxMoNe6MXVXIcEHn6g
 I50sHFqpoC2vlZV7Sg/lWgwkp9wePuqiy7FLIgioVxSmgYEBrieIRbF8a2kN/az7CwUK
 X+UA==
X-Gm-Message-State: APjAAAVRnpjQmx2dBaoklDntNlq3Vub7moLpwOn2wNrxA6j4mGXFs0xn
 tjCIYxFfiqEkBaGaHIwlMZQWjmzH7X4jQMDRAoAE3w==
X-Google-Smtp-Source: APXvYqw5eZthI17ggIB60YmQSLi289Hg78SaRndjRf02lmALvVKCxHcg6an+OAqO5Vwn5+jgn0hgLdASfdracfCOtoM=
X-Received: by 2002:a2e:2bc8:: with SMTP id r69mr3754284ljr.147.1570656602938; 
 Wed, 09 Oct 2019 14:30:02 -0700 (PDT)
MIME-Version: 1.0
References: <VI1PR0701MB228606A53C57F383B24C21E2F0950@VI1PR0701MB2286.eurprd07.prod.outlook.com>
 <392C0EBE-FAAA-48DE-A3A1-C94A1E21AE59@gmail.com>
In-Reply-To: <392C0EBE-FAAA-48DE-A3A1-C94A1E21AE59@gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 9 Oct 2019 14:29:51 -0700
Message-ID: <CABCOCHTbuwQgFTn61jxQdJaEit8Eqw9-Umj5PCThqNz0Oa=FgA@mail.gmail.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Cc: =?UTF-8?Q?Bal=C3=A1zs_Lengyel?=
 <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, 
 "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e1f36a059480fc32"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3v0YVzIL8fcpRYG5UTYPpYVzdQw>
Subject: Re: [netmod] PYANG refine fault ?
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>,
 <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>,
 <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 09 Oct 2019 21:30:08 -0000

--000000000000e1f36a059480fc32
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

The YANG looks valid.
yangdump-pro reports 1 warning:


Warning: Revision date in the future (2019-10-10)
ietf-notification-capabilities@2019-10-10.yang:90.3: warning(1021):
revision date in the future

*** /home/andy/Desktop/ietf-notification-capabilities@2019-10-10.yang
*** 0 Errors, 1 Warnings

Andy


On Wed, Oct 9, 2019 at 2:14 PM Mahesh Jethanandani <mjethanandani@gmail.com=
>
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=C3=A1zs Lengyel <
> balazs.lengyel=3D40ericsson.com@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-capabilities@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 =E2=
=80=9CA leaf-list node may get a set of default values ...=E2=80=9D
>
> .
> 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: Balazs.Lengyel@ericsson.com
>
> <ietf-notification-capabilities@2019-10-10.yang>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>

--000000000000e1f36a059480fc32
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>The YANG looks valid.</div><div>yan=
gdump-pro reports 1 warning:</div><div><br></div><div><br></div><div>Warnin=
g: Revision date in the future (2019-10-10)<br>ietf-notification-capabiliti=
es@2019-10-10.yang:90.3: warning(1021): revision date in the future<br><br>=
*** /home/andy/Desktop/ietf-notification-capabilities@2019-10-10.yang<br>**=
* 0 Errors, 1 Warnings<br><br></div><div>Andy</div><div><br></div></div><br=
><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, O=
ct 9, 2019 at 2:14 PM Mahesh Jethanandani &lt;<a href=3D"mailto:mjethananda=
ni@gmail.com">mjethanandani@gmail.com</a>&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex"><div style=3D"overflow-wrap: break-wor=
d;">Hi Balasz,<div><br></div><div>In general support of unions is poor acro=
ss the tool sets that I have used. It does not help that yanglint gives a c=
ompletely different error.</div><div><br></div><div>I did try yanger, and t=
hat did not result in an error.</div><div><br></div><div>The other option i=
s to move the default statement inside the grouping, which seems to make th=
e error go away.</div><div><br></div><div>Cheers.</div><div><div><br><block=
quote type=3D"cite"><div>On Oct 9, 2019, at 8:01 AM, Bal=C3=A1zs Lengyel &l=
t;<a href=3D"mailto:balazs.lengyel=3D40ericsson.com@dmarc.ietf.org" target=
=3D"_blank">balazs.lengyel=3D40ericsson.com@dmarc.ietf.org</a>&gt; wrote:</=
div><br><div><div style=3D"font-family:Helvetica;font-size:12px;font-style:=
normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;te=
xt-align:start;text-indent:0px;text-transform:none;white-space:normal;word-=
spacing:0px;text-decoration:none"><div style=3D"margin:0cm 0cm 0.0001pt;fon=
t-size:11pt;font-family:Calibri,sans-serif">Hello,<u></u><u></u></div><div =
style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-se=
rif">I was trying to validate the attached model. However pyang keeps compl=
aining about refining a default for a leaf-list:<u></u><u></u></div><div st=
yle=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-seri=
f"><u></u>=C2=A0<u></u></div><div style=3D"margin:0cm 0cm 0.0001pt;font-siz=
e:11pt;font-family:Calibri,sans-serif"><span style=3D"font-family:&quot;Luc=
ida Console&quot;"><a href=3D"mailto:ietf-notification-capabilities@2019-10=
-10.yang" style=3D"color:rgb(149,79,114);text-decoration:underline" target=
=3D"_blank">ietf-notification-capabilities@2019-10-10.yang</a>:184: error: =
&quot;leaf-list&quot; node &quot;ietf-notification-capabilities::supported-=
excluded-change-type&quot; cannot be refined with &quot;default&quot;<u></u=
><u></u></span></div><div style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;f=
ont-family:Calibri,sans-serif"><u></u>=C2=A0<u></u></div><pre style=3D"marg=
in:0cm 0cm 0.0001pt;font-size:10pt;font-family:&quot;Courier New&quot;"><sp=
an style=3D"font-size:11pt;font-family:Calibri,sans-serif">Why? According t=
o <a href=3D"https://tools.ietf.org/html/rfc7950#section-7.13.2" style=3D"c=
olor:rgb(149,79,114);text-decoration:underline" target=3D"_blank">https://t=
ools.ietf.org/html/rfc7950#section-7.13.2</a> =E2=80=9CA leaf-list node may=
 get a set of default values ...=E2=80=9D <u></u><u></u></span></pre><div s=
tyle=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-ser=
if">.<u></u><u></u></div><div style=3D"margin:0cm 0cm 0.0001pt;font-size:11=
pt;font-family:Calibri,sans-serif">Confdc accepts this. Could this be a bug=
 in pyang ?<u></u><u></u></div><div style=3D"margin:0cm 0cm 0.0001pt;font-s=
ize:11pt;font-family:Calibri,sans-serif">Regards Balazs<u></u><u></u></div>=
<div style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sa=
ns-serif"><u></u>=C2=A0<u></u></div><div style=3D"margin:0cm 0cm 0.0001pt;f=
ont-size:11pt;font-family:Calibri,sans-serif">--<span>=C2=A0</span><u></u><=
u></u></div><div style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-famil=
y:Calibri,sans-serif">Balazs Lengyel=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 Senior Specialist=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 Ericsson Hungary Ltd.<span>=C2=A0</span><u></u><u></u></div><div style=3D"=
margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Mobi=
le: +36-70-330-7909=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 email:<span>=C2=A0</span><a href=3D"mailto:Balazs.=
Lengyel@ericsson.com" style=3D"color:rgb(149,79,114);text-decoration:underl=
ine" target=3D"_blank">Balazs.Lengyel@ericsson.com</a><u></u><u></u></div><=
div style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,san=
s-serif"><u></u>=C2=A0<u></u></div></div><span id=3D"gmail-m_-6179932722649=
436367cid:9BCCB950-4C54-47B7-A9C7-FDAEBD63C1D4@eng.vmware.com">&lt;<a href=
=3D"mailto:ietf-notification-capabilities@2019-10-10.yang" target=3D"_blank=
">ietf-notification-capabilities@2019-10-10.yang</a>&gt;</span><span style=
=3D"font-family:Helvetica;font-size:12px;font-style:normal;font-variant-cap=
s:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-ind=
ent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decora=
tion:none;float:none;display:inline">______________________________________=
_________</span><br style=3D"font-family:Helvetica;font-size:12px;font-styl=
e:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;=
text-align:start;text-indent:0px;text-transform:none;white-space:normal;wor=
d-spacing:0px;text-decoration:none"><span style=3D"font-family:Helvetica;fo=
nt-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;=
letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;=
white-space:normal;word-spacing:0px;text-decoration:none;float:none;display=
:inline">netmod mailing list</span><br style=3D"font-family:Helvetica;font-=
size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;let=
ter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;whi=
te-space:normal;word-spacing:0px;text-decoration:none"><a href=3D"mailto:ne=
tmod@ietf.org" style=3D"color:rgb(149,79,114);text-decoration:underline;fon=
t-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:norma=
l;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px=
;text-transform:none;white-space:normal;word-spacing:0px" target=3D"_blank"=
>netmod@ietf.org</a><br style=3D"font-family:Helvetica;font-size:12px;font-=
style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:nor=
mal;text-align:start;text-indent:0px;text-transform:none;white-space:normal=
;word-spacing:0px;text-decoration:none"><a href=3D"https://www.ietf.org/mai=
lman/listinfo/netmod" style=3D"color:rgb(149,79,114);text-decoration:underl=
ine;font-family:Helvetica;font-size:12px;font-style:normal;font-variant-cap=
s:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-ind=
ent:0px;text-transform:none;white-space:normal;word-spacing:0px" target=3D"=
_blank">https://www.ietf.org/mailman/listinfo/netmod</a></div></blockquote>=
</div><br><div>
<div>Mahesh Jethanandani</div><div><a href=3D"mailto:mjethanandani@gmail.co=
m" target=3D"_blank">mjethanandani@gmail.com</a></div><div><br></div><br>

</div>
<br></div></div>_______________________________________________<br>
netmod mailing list<br>
<a href=3D"mailto:netmod@ietf.org" target=3D"_blank">netmod@ietf.org</a><br=
>
<a href=3D"https://www.ietf.org/mailman/listinfo/netmod" rel=3D"noreferrer"=
 target=3D"_blank">https://www.ietf.org/mailman/listinfo/netmod</a><br>
</blockquote></div>

--000000000000e1f36a059480fc32--

