[netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
Andy Bierman <andy@yumaworks.com> Mon, 01 June 2026 18:22 UTC
Return-Path: <andy@yumaworks.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 2C4B9F8D1575 for <netconf@mail2.ietf.org>; Mon, 1 Jun 2026 11:22:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1780338145; bh=qCfIsVzwjqxI+1oQQ2Hc+ibnX1oE7zPkw7XS3iIQf/g=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=KAuok1dvC7wrJjjkig3OQ31UhvAxb6LHRz2VEaAs7ZRnDePBgQnbyg+QyHMTlns5G ppHrvCM2FbshmjrOnPydu6RrDZjtnvOKKX4jgcw1xIH1QFyjmkCpfU4PDo+YwgSWRt WwxraDCfBLnIO+ZVe5QDNG1rdJyaJ//GH86wFC8U=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.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 CBl7zmn2YQER for <netconf@mail2.ietf.org>; Mon, 1 Jun 2026 11:22:22 -0700 (PDT)
Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id BF38EF8D1565 for <netconf@ietf.org>; Mon, 1 Jun 2026 11:22:22 -0700 (PDT)
Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-3967701fc3cso2849481fa.0 for <netconf@ietf.org>; Mon, 01 Jun 2026 11:22:22 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1780338136; cv=none; d=google.com; s=arc-20240605; b=QlBo8b2SMHwSs4NrUfWa5aZ/20k+n28fgLve7D9S1u7US76rNFXq/V+MuBIcOeu6JD jk2dvaEt2fFiBRXzwKkpwHvsqYH293uSHgsPZIQwI60ILPGCPpqgcI8kv4b63adc0gz1 O7RuYknZws6HB1dkZ6NA+AM/ixaY+BFagF0pXV+sQv1gsWUq1p7mmF86AWQU/kNvWWx1 5HS+NUXGACKG3UfkeiCYyrOoKlrU7/jWdeibwesIs2F7LGTFcPrlCRaLUQvKuCPeaF6t SlI76E6DfZURfez2QAVQpI01XZQqkiQHhxii44VkUcUXDEUQOTCycZtmnSGSpyX3AVME kCQA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=OSEs8OL5BcvYtU6eAEP9VRT4KaMnDMoO7lP56APtknA=; fh=amZweZGRetuuP7zjcWCA9FrMFddkwE4ZUyjf8RefEM8=; b=dEiAHiA6h/A2nR6DKSNIiMhtqPShsZKBDrXo69d0/ujg/OB6ukL680XPIFlHjO+gxt pGsnDJpcGDTYZQtEb5VYIP0wr3FdGyAompHGkNdKl5OZvR2WRr6t69Kb4HmWP+F/QIBn whTbAesD6qS6NQLz+SwlFCCV7e0JpgMI+5Y2vYTLTmZAcyo0uxSRJOItRv+86CkosTLp 0n/DOe+YRMAxkq+5AmB4qo1TgW3Rp+Mgiu177MbM4enLC1tqP3r11SLPCUrEH8p5/Xiy 6mCIClC0fdLnSkmaLsngOorrlz+lL+Vppb2aNHedvshoj97xypZFjvCQrJI8n8sCB5z7 Ye0w==; darn=ietf.org
ARC-Authentication-Results: i=1; mx.google.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1780338136; x=1780942936; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OSEs8OL5BcvYtU6eAEP9VRT4KaMnDMoO7lP56APtknA=; b=beJJdA+pOsqgyqH6BOd7ywQyXA9pFYzkcBmTTPYQW+NX9jfeXQHaTTuQZw+uJxfv6h KmgUPijw/TzD1hWGlaIZxA/5pMBRHeLjQn6Em4pVumZEQxiULdcRl9NrD4mwjwV+WdZO gpbvwqYstPSq0NyCPoqZxQWyx22AFpQeYSAOvwnpT1EUmR3Rbn+jmDyZxxVb0iKhUgLS jaccmTWdw99tFVBV0tfCsbtlqLq0pTMpY60VBYdzbZqgGL0JInI2C1aumMXCD+ciqykp scejtL4qNc1wMnd5DCvPbleF6T+pngaV/v7vYTJ4upJMxKR3VXQ7cGc6votVQ8feBeC+ ccmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780338136; x=1780942936; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OSEs8OL5BcvYtU6eAEP9VRT4KaMnDMoO7lP56APtknA=; b=MNX3vnxXnlL3BPZio6tpSunAxm4Ek7HhPPoy6sIkQe790OIHaJ4W0TqaoxjSc3U9Uh zpV0P6LUHNYlGD05yWErZYakWzz6M3yY/OMvhnq/68aJiVHOphSik1NNgOHO4nZmYSKB mEnwk0dmwvNTvXIvVikUagqTUd8f0BNAGvpyQzVn1na2Kfe/YpMM1s2GJc8ruv9KV1B/ 45jD7daGI6mGXKRyzFeuKyZsWHpH6TwECBBZCRtfQpk7kv+rqczQ+V+3HS+JM+zaPUt5 uyUC9fWdVQpRW/eHzkPcT+KO7zqY3g80jcrHjbtfCRaRQTLW07/3m21VSv9w8FIDCQCo MwCw==
X-Forwarded-Encrypted: i=1; AFNElJ+gUSGwMC7Wi8Tsa3YRhgYGgKjykrIBU+ezghTYE3/6CixwvdKKATTSQnLDBS8K6fSGZ0IBpZaH@ietf.org
X-Gm-Message-State: AOJu0Yx1d3Bm8vCVBK2X7j7oDX/wfeTJf9gloPuZseejFKNUm5k9TluH qRQ2QvvBhbGORieqPG1JOij2BG+auhCHBwyiuOGXjQnehea2IQwshzUJTUN8elH0gkFevuYA22I SEPWhPY8ZmqDGTKC82HyyC723yfnSyB3E/48WbhYGnw==
X-Gm-Gg: Acq92OFWXK5s91FGMNgu7AXhVKi32JI992muUtdyDVNGcul27uhqd3DNj24zUMKcoAS kCX3nlF9Dd7ngQuW6A8feX7oBOfn/48Idg0WQKNR0+SLC/LACLqIyz8rAE/OGMpGktMS5fY4vLj ctnxWaT9no9iIcEi5u3ogeoZ1f92p4WB5NfL4519g/Fq31bzpGGmXDw19tQiS8f/qfMpVR2iRRa B9EykR3JeONEHgLy4oqzWvbHIqu5sqk5pTgshSh0tNfh5R+QOCZ+URuBaRXKGpm2g59Dm5penwR j6poE3e3QSMQVsaF
X-Received: by 2002:a2e:be9d:0:b0:396:7953:b316 with SMTP id 38308e7fff4ca-3967953b51fmr12861781fa.1.1780338135543; Mon, 01 Jun 2026 11:22:15 -0700 (PDT)
MIME-Version: 1.0
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> <ZR1P278MB1170EFA94659857CB1B5FF13890F2@ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM> <CACvbXWF6qT3SGRJmH-mRm0jTmPJp-9o4oLZCpBgKk-NQx304JA@mail.gmail.com>
In-Reply-To: <CACvbXWF6qT3SGRJmH-mRm0jTmPJp-9o4oLZCpBgKk-NQx304JA@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 01 Jun 2026 11:22:02 -0700
X-Gm-Features: AVHnY4InRdcGDwOlRlVvReFpgYfzDaPyqaZ8ay3vfgFagNJPqPRhif7XG8nkbvM
Message-ID: <CABCOCHRyQCLVX1o8fGvczj6YzFj++S_LgEt-uHpR+AmWwsa8NA@mail.gmail.com>
To: Per Andersson <per.ietf@ionio.se>
Content-Type: multipart/alternative; boundary="000000000000263e2c06533546fe"
Message-ID-Hash: MLVZX7KPUWNXI27P6QPL7O43REGIBSAJ
X-Message-ID-Hash: MLVZX7KPUWNXI27P6QPL7O43REGIBSAJ
X-MailFrom: andy@yumaworks.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: Thomas.Graf@swisscom.com, 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/Wuhltp99F8lJlcvuOeOBJL3X7kM>
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>
On Sun, May 31, 2026 at 1:21 PM Per Andersson <per.ietf@ionio.se> wrote: > On Fri, May 22, 2026 at 7:33 AM <Thomas.Graf@swisscom.com> wrote: > > > > 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. > > Cisco NSO and ConfD, and Ductus DMAP supports both RFC 8525 and > RFC 7895 yang-library. It seems like sysrepo supports both as well while > clixon only mandates RFC 8525. > > When I was still at Cisco NSO treated an older fleet and maturity > grade in deployments as first class citizens. Deployment and > adoption takes time, as you know. > > It seems that it isn't so easy to draw any conclusions on contemporary > support or deployments for RFC 7895. > > I am glad to learn that many toolchains support RFC 8525. The issue is not 7985 vs 8525 but rather /modules-state vs /yang-library, since RFC 8525 contains both subtrees. > I propose YANG module just changed to what I suggested. > It is a quick and effortless change and seems to be the path > of least resistance. > > > I believe the original request to support /modules-state was from me. Now it is not so clear this is needed or a good idea. Since this new augment may not be known to the client, it is better to leave /modules-state stable, and only introduce this issue to the /yang-library subtree. Both these subtrees can be large, so it is good to encourage vendors to use the /yang-library subtree, so /modules-state can eventually be removed from the server. -- > Per > Andy > > > > > > 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> 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> > > Sent: Friday, May 15, 2026 6:09 PM > > To: Mahesh Jethanandani <mjethanandani@gmail.com> > > Cc: NETCONF WG <netconf@ietf.org>; > 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> 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> 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 > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > netconf mailing list -- netconf@ietf.org > > To unsubscribe send an email to netconf-leave@ietf.org > > > > _______________________________________________ > > netconf mailing list -- netconf@ietf.org > > To unsubscribe send an email to netconf-leave@ietf.org >
- [netconf] yang-library-augmentedby: Mix of deprec… Per Andersson
- [netconf] Re: yang-library-augmentedby: Mix of de… Mahesh Jethanandani
- [netconf] Re: yang-library-augmentedby: Mix of de… Andy Bierman
- [netconf] Re: yang-library-augmentedby: Mix of de… Thomas.Graf
- [netconf] Re: yang-library-augmentedby: Mix of de… Andy Bierman
- [netconf] Re: yang-library-augmentedby: Mix of de… Thomas.Graf
- [netconf] Re: yang-library-augmentedby: Mix of de… Benoit@everything-ops.net
- [netconf] Re: yang-library-augmentedby: Mix of de… Mahesh Jethanandani
- [netconf] Re: yang-library-augmentedby: Mix of de… Per Andersson
- [netconf] Re: yang-library-augmentedby: Mix of de… Andy Bierman
- [netconf] Re: yang-library-augmentedby: Mix of de… Leonardo.Rodoni
- [netconf] Re: yang-library-augmentedby: Mix of de… Mahesh Jethanandani
- [netconf] Re: yang-library-augmentedby: Mix of de… Sarah Tarrant
- [netconf] Re: yang-library-augmentedby: Mix of de… Benoit@everything-ops.net
- [netconf] Re: yang-library-augmentedby: Mix of de… Per Andersson
- [netconf] Re: yang-library-augmentedby: Mix of de… Benoit@everything-ops.net
- [netconf] Re: yang-library-augmentedby: Mix of de… Andy Bierman