Re: [netmod] PYANG refine fault ?

Martin Bjorklund <mbj@tail-f.com> Thu, 10 October 2019 08:02 UTC

Return-Path: <mbj@tail-f.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 7BEE612004D for <netmod@ietfa.amsl.com>; Thu, 10 Oct 2019 01:02:33 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 eBd98bTwtkXp for <netmod@ietfa.amsl.com>; Thu, 10 Oct 2019 01:02:31 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 7A1CF120033 for <netmod@ietf.org>; Thu, 10 Oct 2019 01:02:31 -0700 (PDT)
Received: from localhost (unknown [173.38.220.41]) by mail.tail-f.com (Postfix) with ESMTPSA id 189091AE03DD; Thu, 10 Oct 2019 10:02:29 +0200 (CEST)
Date: Thu, 10 Oct 2019 10:02:02 +0200 (CEST)
Message-Id: <20191010.100202.1547181021580316629.mbj@tail-f.com>
To: balazs.lengyel=40ericsson.com@dmarc.ietf.org
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <VI1PR0701MB228606A53C57F383B24C21E2F0950@VI1PR0701MB2286.eurprd07.prod.outlook.com>
References: <VI1PR0701MB228606A53C57F383B24C21E2F0950@VI1PR0701MB2286.eurprd07.prod.outlook.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=utf-8
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/uv9_NQA9h3NFxtW3VEAx3QpI-hU>
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: Thu, 10 Oct 2019 08:02:34 -0000

Hi,

Balázs Lengyel <balazs.lengyel=40ericsson.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 “A
> leaf-list node may get a set of default values ...” 
> 
> ..
> 
> Confdc accepts this. Could this be a bug in pyang ?

Yes, now fixed.


/martin

  
> 
> Regards Balazs
> 
>  
> 
> -- 
> 
> Balazs Lengyel                    Senior Specialist
> Ericsson Hungary Ltd. 
> 
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
> 
>  
>