[netmod] leaf-list in YANG 1.1

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> Tue, 29 May 2018 00:56 UTC

Return-Path: <bart.bogaert@nokia.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 93D9912E86C for <netmod@ietfa.amsl.com>; Mon, 28 May 2018 17:56:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 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_PASS=-0.001, T_DKIMWL_WL_HIGH=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 pDYqmQUhFVpE for <netmod@ietfa.amsl.com>; Mon, 28 May 2018 17:56:33 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0725.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::725]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B34DD12E05D for <netmod@ietf.org>; Mon, 28 May 2018 17:56:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gl24sRecGGv4004kylFkvE/Md6gNLkddfhOW3U8XMSY=; b=bImiVodGKPgR7wzf7M4igcSa3KJfV0fG7CQCyNrZkQFwrvCUynPtt7g5qFL2gWPVZCldovp8U95CW+C4qJ5/m5bf1RDVnDk3b8HFTZQCMZ+rS8YAeQkwSrVtVEprf9k+xyfht9PDcCRGY7vKBEzeAZ0lhzeDr0Y1aTAHrOtcY6Y=
Received: from DB6PR07MB4421.eurprd07.prod.outlook.com (10.168.24.142) by DB6PR07MB3384.eurprd07.prod.outlook.com (10.175.234.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.5; Tue, 29 May 2018 00:56:30 +0000
Received: from DB6PR07MB4421.eurprd07.prod.outlook.com ([fe80::a8a8:56c2:3696:4be7]) by DB6PR07MB4421.eurprd07.prod.outlook.com ([fe80::a8a8:56c2:3696:4be7%2]) with mapi id 15.20.0820.005; Tue, 29 May 2018 00:56:30 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: leaf-list in YANG 1.1
Thread-Index: AdP25fycB9A0DIxRRXyoayBZtavGuA==
Date: Tue, 29 May 2018 00:56:29 +0000
Message-ID: <DB6PR07MB442102BCE3D8DD74BE45BB40946D0@DB6PR07MB4421.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=bart.bogaert@nokia.com;
x-originating-ip: [116.246.26.58]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; DB6PR07MB3384; 7:Qf393SqARgD54dE5/JKqVmEiazddB5G/mx33R6mpWFNJoEID9LDGqx1OCCuaE7i7RyjiITNuUGJyaGdClF2MzT7vF+4Q3ANe4YekeEQRXvPtOXEBIAThvqrcFuXBjMKHGEAoaWXMgt90vx5WyE6Lp7T7VbmFUj/F3rop6fj15Z29Y/G24pyiKPyvxylpY9PvEp1w9ZT7dIYJnGbVA3XKLjN45kBtuypa5/En1jDliYS7rQDN045eoxnxlnsAo8om
x-ms-exchange-antispam-srfa-diagnostics: SOS;
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989080)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(8990040)(2017052603328)(7193020); SRVR:DB6PR07MB3384;
x-ms-traffictypediagnostic: DB6PR07MB3384:
x-microsoft-antispam-prvs: <DB6PR07MB33841C246C0C5A5A23C86075946D0@DB6PR07MB3384.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(28532068793085)(21748063052155);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(3002001)(3231254)(11241501184)(806099)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DB6PR07MB3384; BCL:0; PCL:0; RULEID:; SRVR:DB6PR07MB3384;
x-forefront-prvs: 0687389FB0
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(376002)(39860400002)(396003)(39380400002)(366004)(346002)(189003)(199004)(8676002)(7696005)(476003)(59450400001)(6506007)(33656002)(3846002)(6116002)(790700001)(486006)(81166006)(81156014)(1730700003)(2501003)(97736004)(5250100002)(5660300001)(6306002)(9686003)(7736002)(6916009)(25786009)(5640700003)(99286004)(6436002)(53936002)(54896002)(2906002)(478600001)(5630700001)(316002)(106356001)(102836004)(2351001)(14454004)(105586002)(68736007)(86362001)(66066001)(26005)(8936002)(3660700001)(3280700002)(55016002)(2900100001)(74316002)(186003); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR07MB3384; H:DB6PR07MB4421.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: zsBYOZ5kGxcWFfGtpaP4ZkjWShsXo25PbRwvA8LO0ve0kJtm4KyJ9aGaLbbTblhP9JXakVMr9lYv6grIbJUjJ7zPlnGFi++8HLwH1ogRNpbkMtDz1uhS73QmUBIy4WAyMVhT1HsAqx8GybeBM930AUCZE9ACbHdHtpfZHg9npCBLov4Yh/3XdDeLdXXdy0/FCJHXEl1sifm6FH7R61B1QhBAZD+W81QZWmpLcfLO6oI=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_DB6PR07MB442102BCE3D8DD74BE45BB40946D0DB6PR07MB4421eurp_"
MIME-Version: 1.0
X-MS-Office365-Filtering-Correlation-Id: 3ab0ab16-7669-4947-5599-08d5c4ff03b4
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 3ab0ab16-7669-4947-5599-08d5c4ff03b4
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2018 00:56:29.9710 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR07MB3384
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ibk6BzfMEuWbxFUL11vkSqQqWrk>
Subject: [netmod] leaf-list in YANG 1.1
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 29 May 2018 00:56:36 -0000

Hi,

We have a question about the leaf-list in config-false data.  When comparing YANG 1.0 and YANG 1.1 the restriction on having unique values seems to have been lifted for config-false data:

  *   Section 7.7 RFC 7950: "In configuration data, the values in a leaf-list MUST be unique."
  *   Section 7.7 RFC 6020: "The values in a leaf-list MUST be unique.")

This means one can have multiple entries with the same value in a state leaf-list.  What is expected to happen when you delete an entry by specifying the value of the leaf-list entry and there happen to be multiple entries with the same value? Are all these entries deleted or is one expected to perform as many delete operations as there are entries matching the value specified in the delete operation?

Regards, Bart