[netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list

Thomas.Graf@swisscom.com Fri, 22 May 2026 05:31 UTC

Return-Path: <Thomas.Graf@swisscom.com>
X-Original-To: netconf@mail2.ietf.org
Delivered-To: netconf@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 707A5F2F93C2; Thu, 21 May 2026 22:31:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1779427906; bh=qiHwFvGeH9P7CXAyng4m0EDek8EMgLwNMq7LICzmeDI=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=fkqPzOBkwu1RO67XIGtMGmXLl7zlcmh/LtLAysTPTYFWWt6InQk2qTAaR1PAai4YY U9uIOyqoJnq+zqQKmXd7/yoD39fFsxMuedNXWOTVCL0j6sy5UMOixGL8PLs6Mfw8sH x6eJiF1mVRdHaaB3IPVtP1GWRyqJr6hODzNTwwR4=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.396
X-Spam-Level:
X-Spam-Status: No, score=-4.396 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=swisscom.com
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kp2ypY4g_F-k; Thu, 21 May 2026 22:31:45 -0700 (PDT)
Received: from mail.swisscom.com (mailout120.swisscom.com [138.188.166.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 085A2F2F9287; Thu, 21 May 2026 22:30:31 -0700 (PDT)
Received: by mail.swisscom.com; Fri, 22 May 2026 07:30:22 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=swisscom.com; s=iscm; t=1779427823; bh=1daFxUM6U9D4sPduzRbpdAH6+iVInO2NCVv7XzCdEgc=; h=MIME-Version:Content-Type:From:To:CC:Subject:Date:Message-ID: References:In-Reply-To; b=R0Gm8s/tTgrUOZ5xUPgJUDkPJH51jIb8gStzt1dYw2QJEqTRSqEvxlC1wJUWkvFTc pNHwjEV7vF7sz1M1WnI6eYotswATZNvPeyaKiHAAB2AlZSdEY3Gh4lIXGtcLotf9Aa pp9IFHqeo/VL7QcKSkKwFCipexTYJAnC75l2Jd4Mv7f/YYtSjCfS/NKshou4bQ7uKg hv1WCTbCA0yKRCXYUVKugR2eUJmaaoH4iv1Jen5EiOTCHKrBPhMqigchSwTxvYPpuG wp1dMp61q+9mJoGICB1XgUQu8DmJM0uLQJ1s8vivZ6D5QLmCjOBKtaOI9lwKVuGOBB GFU+ujD0cywhg==
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="----=_Part_551269_1638786525.1779427822469"
X-Mailer: Totemo_TrustMail_(Notification)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=hhJfgXOKjyrbGAZDE4jIfiqW3loeeRDdEq7tWy/iFvLtZQRYRIP7MkDrCoESkDzcgCTYSQbwjzyWlehpqCSAQoTqpNbQ3Qm/yuYfGBI+a3sGhlqwJz7jKp0iF9Ijlwo/pSKN2oHqo3kuUCC+RxoeZnV09M2F3a7ao8dEqXdkQsxoB5ws2Gbto5Nk5yNpaDttv9fxggQ0AwUBCT9XaRLRSdnplJJ1e1x2heWWMERuwKD2vTeqINjhUS5pifoCUZjc4gmDo5toOEd/FBmWe1pXy6Lh8owWVUh9X3NE5qemhpZvPF6AdBQw4duNB5RF0ztpbN+wK+6+Ag/WwIebloFEFQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=sP8Yy4wd1GqGaIFMNcL9HUEjgjVhMXBN5JafGZhMcJU=; b=ay7c9B/VKzB2IS48T4STjC+BOQWaoKEzRQhI6lFsP23CUWYfoj7w3FhxWtv4ZJH4S52karV2+by8v19rcwNdqmk8D9tGau0qbyLJ82ZNu0GHS9Ydv65mJNf3i+aoNezV67o4MsWzF46dK0R0smaeSo7uMqLdGqBsSQo6qhVcuFzQ9jNd7MKdWE/U0WPiKA3B42inhTEYRCrpgQSNEPK09ke7naHqZvGzLHjUk/HtZ/Z10hOJ5JQSj0m8DXS5Gdofbr555/NdQjjpUmhS7cTFZpVeo96elp30eAJNePa8Qx+0Fj8szuzczZEeg9LJJIu/BSGMT+OAt0B6O6eT9BWYpQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=swisscom.com; dmarc=pass action=none header.from=swisscom.com; dkim=pass header.d=swisscom.com; arc=none
From: Thomas.Graf@swisscom.com
To: andy@yumaworks.com
Thread-Topic: [netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
Thread-Index: AQHc49m0+LmSPPy9KECq/4nHCtTQSbYPQnmAgAleeNCAABk+gIAAzuyg
Date: Fri, 22 May 2026 05:30:17 +0000
Message-ID: <ZR1P278MB1170EFA94659857CB1B5FF13890F2@ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM>
References: <CACvbXWEiQdPr4fEOi4dbkU-jxNiXrJ+SURob-BAh0dO4fx2oPQ@mail.gmail.com> <F5842E72-9E34-454E-BA1F-E90A14EF7CB0@gmail.com> <CABCOCHQUDLVOxuLNDCYEG74Uc9tKSOWM5ysYr7gyhP7A7gvkQw@mail.gmail.com> <ZR1P278MB1170CAF8B0AA186B0A606836890E2@ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM> <CABCOCHRkbgqL0eBUdaeUkQMEErqG3ocO7kffta8ot6zyOHz4nw@mail.gmail.com>
In-Reply-To: <CABCOCHRkbgqL0eBUdaeUkQMEErqG3ocO7kffta8ot6zyOHz4nw@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_ActionId=84627216-722b-4f7c-8eca-c1228ca05b95;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_ContentBits=0;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Enabled=true;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Method=Standard;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Name=C2 Internal;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_SetDate=2026-05-22T05:04:01Z;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_SiteId=364e5b87-c1c7-420d-9bee-c35d19b557a1;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Tag=10, 3, 0, 1;
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=swisscom.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: ZR1P278MB1170:EE_|ZR0P278MB1672:EE_
x-ms-office365-filtering-correlation-id: bcb175c1-b079-4ed6-79f6-08deb7c33575
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|4022899009|10070799003|376014|13003099007|8096899003|22082099003|56012099003|18002099003|38070700021|3023799007|4143699003|6133799003|11063799006;
x-microsoft-antispam-message-info: wII8pBNtMddDKMHAyOtLseLR0htSs/qcmMrA+j3PoazR/DN4V4vtBidOBM3LnXvovvXYIc2RP/RKRju68vRyjh4acMwaI0UIwaru9WvtZ6OF+ikb1NagVJMphrbNC/rcErCIFbIhQJqe3w/wIip0csXBdszJgNow1lCzWUUxQLqnI4W0djbv9Zpupc9v1iO0nR5MAbJ7+3fyIBBJSDURwyu8HKdB7ecS7Edm+V4mZ3S6dlXcdfycuyFbILx2FB+yfUyip9BPBaqxwPo3PlXSJ8/I+bHgO70MJT/mSnsP6HBvFh8ksTobk7FchUhi9TglsPGWy/HyYHg0qxGYTwAX+8y5aYjY0czBgJxXTZBUhIm5dgnTF+aX3Vj0mrHtfAlRLvHFHpy3w+i5cxRcAwiSHKgTq9KYsSYJH3zcTe1YexHl6TqaWYRcKFNWnDYyGPtMMllUbFh2odReGJJjmN11HQIWpwU6cPjHVoK5MhPmHVIDBmbDzmOIl9JQJlV9Wzybooi9B4oqVRiUx+MCfhJPIOAGndGtCl8FTEt+qLigQMkMwYSoaBceMMonmhJ+dXQHzD2uYR4mmm9ehbGbiKFvatBj3sQRGppsUh0Z39ezkkOxSMxBxD28mvgFPuSu2Zi30r8UH9oCYSKDUuYzdwnwp60pqM4ybfn7vxEG/sIJiX+vGB8ZP8qrbYF9ZHnEGwYez3Eyadb7ZHd5MFZl595Hww==
x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(4022899009)(10070799003)(376014)(13003099007)(8096899003)(22082099003)(56012099003)(18002099003)(38070700021)(3023799007)(4143699003)(6133799003)(11063799006);DIR:OUT;SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 2
x-ms-exchange-antispam-messagedata-0: nrplc0+zwav7hObRaRmgPMDHg8NgyNBVRul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Tc78vEKA==
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: bcb175c1-b079-4ed6-79f6-08deb7c33575
X-MS-Exchange-CrossTenant-originalarrivaltime: 22 May 2026 05:30:17.5992 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 364e5b87-c1c7-420d-9bee-c35d19b557a1
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: QzS1fABePPflo+diohMNZdOa/JtupzWi+hNKMUvLNSt/IhdBqzyXJ/jMbNSTef/Yh9ZQSMHyrXMSpTBy0OhxkOrMt1z74UD+MLPhIXtrNQQ=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZR0P278MB1672
X-OriginatorOrg: swisscom.com
X-CFilter-Loop: Reflected
X-Trustmail: processed
Message-ID-Hash: IFA7PWVDYHEWWBMP3ULERF4I5HQ2USNT
X-Message-ID-Hash: IFA7PWVDYHEWWBMP3ULERF4I5HQ2USNT
X-MailFrom: Thomas.Graf@swisscom.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: netconf@ietf.org, draft-ietf-netconf-yang-library-augmentedby@ietf.org
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/hSShgp4usIBy4vRnsBIEV_laF_4>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>

Dear Andy,

Thanks.

AB> The new /yang-library subtree is to support NMDA, which is rarely used.

To which implementation are you refering to?

5 years ago I would have agreed with you. I am aware that the following network operating systems have updated their implementations a while ago:

Cisco IOS XR, XE and NX-OS
Juniper JunOS
Nokia SR-OS
Huawei VRP (OLT, IP and SDWAN)
Nokia SR-OS
Arista EOS

Since usually network operating systems have a lifecycle of 1-3 years, having network operating systems which still doesn't support RFC 8525 are rare in Swisscom's network and if there are, they are already planned to be upgraded.

I have seen network operating system implementations where the development time to upgrade from YANG Library RFC 7895 to 8525 took literally just a few days. I am aware of 4 network operating system implementations of draft-ietf-netconf-yang-library-augmentedby. All of them chose to augment yang-library on RFC 8525 based implementations.

On the YANG library side which the OSS systems are using. We did a comprehensive feature comparison between libyang, yangtools and yangkit. From what we observed there is that today, only libyang out of the 3 has YANG library support. In yangkit the YANG library support is under development where in yangtools we are considering code contribution. RFC 7895 is no longer considered there. From my personal experience, I am also aware that ncclient and NSO is using RFC 8525 NMDA yang-library.

Best wishes
Thomas

From: Andy Bierman <andy@yumaworks.com>
Sent: Thursday, May 21, 2026 6:43 PM
To: Graf Thomas, SCS-INI-NET-VNC-E2E <Thomas.Graf@swisscom.com>
Cc: mjethanandani@gmail.com; netconf@ietf.org; draft-ietf-netconf-yang-library-augmentedby@ietf.org
Subject: Re: [netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list

Be aware: This is an external email.



On Thu, May 21, 2026 at 8:21 AM <Thomas.Graf@swisscom.com<mailto:Thomas.Graf@swisscom.com>> wrote:
Dear Andy,

Reading https://datatracker.ietf.org/doc/html/rfc7950#section-7.21.2

   o  "deprecated" indicates an obsolete definition, but it permits
      new/continued implementation in order to foster interoperability
      with older/existing implementations.

   If a definition is "current", it MUST NOT reference a "deprecated" or
   "obsolete" definition within the same module.

I believe that what RFC 7950 meant to say it that when something is deprecated, it should not be extended anymore because it is deprecated.

Even though we can trick the compiler with a leaf-list, I don't thing we are acting in the spirit of RFC 7950 and RFC 8525 authors.

Therefore I believe the best option is to remove

  augment "/yanglib:modules-state/yanglib:module" {
    status deprecated;
    description
      "Adds Augmented-by leaf-list to the list of modules of a module set";
    uses augmented-by;
  }

from ietf-yang-library-augmentedby. As an implementor who implements ietf-yang-library-augmentedby, I believe it is a no brainer to upgrade ietf-yang-library to RFC 8525 if it is not already done so. RFC 8525 has been published 7 years ago.



I don't care if the /modules-state augments is removed.

The new /yang-library subtree is to support NMDA, which is rarely used.
The added complexity for the client is non-trivial.
A non-NMDA server has no reason to update to RFC 8525.

Best wishes
Thomas


Andy


From: Andy Bierman <andy@yumaworks.com<mailto:andy@yumaworks.com>>
Sent: Friday, May 15, 2026 6:09 PM
To: Mahesh Jethanandani <mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>>
Cc: NETCONF WG <netconf@ietf.org<mailto:netconf@ietf.org>>; draft-ietf-netconf-yang-library-augmentedby@ietf.org<mailto:draft-ietf-netconf-yang-library-augmentedby@ietf.org>
Subject: [netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list

Be aware: This is an external email.



On Thu, May 14, 2026 at 12:41 PM Mahesh Jethanandani <mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>> wrote:
Hi WG,

The document is currently in the RFC Editor queue and we need to decide fairly quickly what to do with this “errata”.

The suggestion from Per is small and doable with where the document is, if the WG agrees that the change is needed.


The change looks OK.
It is unfortunate that the status-stmt has so many issues.

This does violate a MUST NOT rule, so it should be fixed.
However, the accepted meaning of 'deprecated' is that the schema node is implemented, but
it may be removed in a future module revision.   The rule about 'current' MUST NOT reference 'deprecated'
is therefore ignored.  Since 'obsolete' means the node is not implemented, any reference to 'obsolete' will cause an error.

Thanks.

Andy



On May 13, 2026, at 8:13 AM, Per Andersson <per.ietf@ionio.se<mailto:per.ietf@ionio.se>> wrote:

Hi,

The ietf-yang-library-augmentedby.yang has the following
construct:

 grouping augmented-by {
   leaf-list augmented-by {
     type leafref {
       path "../../yanglib:module/yanglib:name";
     }
 }

 augment "/yanglib:modules-state/yanglib:module" {
   status deprecated;
   uses augmented-by;
 }

Trying to compile this module yields a warning because:

* the "module" container is deprecated,
* the "augmented-by" leaf-list is implicitly current
* the leafref "yanglib:name" is deprecated

This is not allowed per RFC 7950 Section 7.21.2:

  If a definition is "current",  it MUST NOT reference a
  "deprecated" or "obsolete" definition within the same
  module.

The issue is that the status statement is not inherited,
see yang-next issue #27 [0].


I think we should create YANG modules that follow the
specifications.

Suggest that the grouping is rolled out in the module,
and stated explicitly in both augments:

 augment "/yanglib:yang-library/yanglib:module-set/yanglib:module" {
   leaf-list augmented-by {
     type leafref {
       path "../../yanglib:module/yanglib:name";
     }
 }

 augment "/yanglib:modules-state/yanglib:module" {
   status deprecated;
   leaf-list augmented-by {
     status deprecated;
     type leafref {
       path "../../yanglib:module/yanglib:name";
     }
 }

Not as elegant as the module is defined now, but at least
the compiler doesn't complain and we follow YANG.


[0] https://github.com/netmod-wg/yang-next/issues/27


--
Per


Mahesh Jethanandani
mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>





_______________________________________________
netconf mailing list -- netconf@ietf.org<mailto:netconf@ietf.org>
To unsubscribe send an email to netconf-leave@ietf.org<mailto:netconf-leave@ietf.org>