[netmod] PYANG refine fault ?

Balázs Lengyel <balazs.lengyel@ericsson.com> Wed, 09 October 2019 15:01 UTC

Return-Path: <balazs.lengyel@ericsson.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 8A21A12010E for <netmod@ietfa.amsl.com>; Wed, 9 Oct 2019 08:01:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 XQJqZYCFLvdw for <netmod@ietfa.amsl.com>; Wed, 9 Oct 2019 08:01:46 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140040.outbound.protection.outlook.com [40.107.14.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C81351200E7 for <netmod@ietf.org>; Wed, 9 Oct 2019 08:01:45 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G3OpinMBAU8W2al9pqVM91IdBxz1I8josTY2iH5uGfI2Le8IAxEdGhWxlsK+kluYJWSolU+IqGfNkNE45ViRCnpDrhaHU7OQIIvqynCsTJj5mc0UfXrJ/t2hkX4oyHsoisNi6p1oX7En8Qtz52yDx/VxkVubSZMbm/UIBJ2GI+1LoPNTyd179fMtS+3HL7tVsfHxicjv8csijNDihX1XpHllYQ9dyTy6qWOOFt9BPo5nH+b6pMxJrp0eh2R4yDMjnsOUS5FwsJsLp/khjR+LqvfUKT8ugfSuB/C5oncE6dv+KAxgfqzJXMykWypIccIIBoadXvMdihS4chmwJRlzFA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V9RDYVXmNf5gtkO1RXxj7QHKs2rB6CTQWHapplwHYTk=; b=gs9KKgr2PHDN4YGHz95CIhSC5IyHePAL8bLxgXCckmwHmoMjLz7r0/K6Wy8sEcQ3zVGEaCfFIRVfOrOshpWq3ow1P8EhWf3Vk+Hf+nFttvxntirgGMOOz0EZH67G52WVpO5Aj2YcVJzWhTgzoymRB4HvtVBLxwqKMxssW0zRP+Jwfw6nV2QIkALlODpNtBBSeovo1maUOhAXdHRMuTNKBoru2BmFT7TCBjq9lPvPzkqEgF+KhJ3B0km+h1l+hUFn/Uc2KIWrBs6jGGY1+hH6pVJxzWFQdMTm8rK2V7BKc/j1g+WcvNho/WtUGmwwXwJEmwfjxbop4PTlfkwyEdTK9A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=V9RDYVXmNf5gtkO1RXxj7QHKs2rB6CTQWHapplwHYTk=; b=Cu7UVVwcTfwzKqkw4u3udE8LM1REvHc+5XlxAMvHhyrvbbvFibHoBHT6JVOxubU4asrKbproUgsI6jkkIbVFAB7HZLzZ2LWPb17iKiAlTHH34OdDfHlNj60+MaI/FqnRG/BWDfFTMRn8Km0/FJMh8RO5FEhzFr8HmdICMb45gIY=
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com (10.169.137.153) by VI1PR0701MB2239.eurprd07.prod.outlook.com (10.169.137.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2347.14; Wed, 9 Oct 2019 15:01:43 +0000
Received: from VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::2d49:4ace:81d8:2fbc]) by VI1PR0701MB2286.eurprd07.prod.outlook.com ([fe80::2d49:4ace:81d8:2fbc%12]) with mapi id 15.20.2347.016; Wed, 9 Oct 2019 15:01:43 +0000
From: =?iso-8859-1?Q?Bal=E1zs_Lengyel?= <balazs.lengyel@ericsson.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: PYANG refine fault ?
Thread-Index: AdV+sk2abCKcRd7mTiqk3sNH/wPwOw==
Date: Wed, 9 Oct 2019 15:01:43 +0000
Message-ID: <VI1PR0701MB228606A53C57F383B24C21E2F0950@VI1PR0701MB2286.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [89.135.192.225]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: b782e643-c5d6-458a-1612-08d74cc9990c
x-ms-traffictypediagnostic: VI1PR0701MB2239:
x-microsoft-antispam-prvs: <VI1PR0701MB22392D5FD00AFFE10114E895F0950@VI1PR0701MB2239.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 018577E36E
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(366004)(39860400002)(136003)(376002)(396003)(199004)(189003)(66476007)(26005)(66446008)(66556008)(6506007)(66616009)(64756008)(81166006)(52536014)(6116002)(790700001)(966005)(2906002)(66946007)(33656002)(7736002)(316002)(81156014)(186003)(74316002)(45776006)(3846002)(4001150100001)(66066001)(14454004)(478600001)(86362001)(1730700003)(8676002)(3480700005)(99286004)(476003)(55016002)(99936001)(5640700003)(2501003)(9326002)(7696005)(6306002)(54896002)(25786009)(7116003)(102836004)(5660300002)(76116006)(5024004)(14444005)(256004)(4744005)(9686003)(486006)(2351001)(8936002)(71200400001)(6916009)(71190400001)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0701MB2239; H:VI1PR0701MB2286.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: CWayZBJMWhUBFHPEpmzUCiJKBNMkblTfk0pGA/M4EOLkl9icbOLgKE+WeTL1cp6/qZpbZKUkDtvNUrJglOlUIZmgIiUQo96HhQKEFko7/sh5KMsMuPQ2YHYdbrv1eb2+3L+FrjF5JlhmzndHxKFaGOI/kcQN4Wi+OCg/svVed6mkzT4dTo/0vs087U3g93HnXCynLvVOOKLUo5BzG+nsMp/GUww61KaBqwXuXZRxuHXR4U9sDy/OohQYFZ3AUWuSUMEp1iOnbetCLoV7T21NtlZA9SU47RR5ZN/e1VoWHHX8VFRDnBJ8t+30pxFd6gMS6Qg1/6XWnbW4uw2e3ni6k4MwGPEwxozi9EYoUt9PqPDyWZ5mk9G/iDciN/qkbKXFqCTsMvVl1l/KXtjBiBqdfrnVwWj5+CwMKv1d8zU98ZA=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=SHA1; boundary="----=_NextPart_000_024D_01D57EC3.395B87C0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: b782e643-c5d6-458a-1612-08d74cc9990c
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Oct 2019 15:01:43.4448 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 8oLaBnnH2Tlsf334aSAiCVgrRvzCmdDtT4rf3qGMbLwQLJfEaMGuoiUwaCTEqxFrWXgYqNrcQ7h0ldoN+i0hrbxit251pZgd69MwNdz5wqk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2239
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/G4Y-w0NnHSYbT-CK2tj7rVYev6o>
Subject: [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 15:01:49 -0000

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 ?

Regards Balazs

 

-- 

Balazs Lengyel                    Senior Specialist
Ericsson Hungary Ltd. 

Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com