[netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
Andy Bierman <andy@yumaworks.com> Thu, 21 May 2026 16:43 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 09112F29AB1E for <netconf@mail2.ietf.org>; Thu, 21 May 2026 09:43:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1779381825; bh=V4iGYlv/COVxqJ5yZe5xCxNIz+rweC2EUgZ7ZQQzWVo=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=PPH84wcSSLZM3VVpmDacYrL8r1zhxb+b5+xAgylifEbq+L0u4i5ET1SJ4cvBbRGZN qlpOehbIiSJQ8agahaEpQ0Lq/BQN+ODwDitfjRzwp/QMEpGh7HDJl1Y4MhQOy3obSA 3UH5FcYf0+pyl0nnTt7HKCs4+ceN4PVHKzj7Y7e4=
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 EzcOYBnXJFom for <netconf@mail2.ietf.org>; Thu, 21 May 2026 09:43:44 -0700 (PDT)
Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) (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 4BC2DF29AB17 for <netconf@ietf.org>; Thu, 21 May 2026 09:43:44 -0700 (PDT)
Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-5a8985fe4e6so694198e87.0 for <netconf@ietf.org>; Thu, 21 May 2026 09:43:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1779381817; cv=none; d=google.com; s=arc-20240605; b=JGDByBRsT8ZJXoIG01Ny0X61jy67xvV04IrkzyR8c9W0IUSrsR/q8gnid0uM1hdDFl DjxU9waIxWScr2xTxTge1XXirMlAtr/AoIhJ+sl1klzTK2UmrWVpyDf+9nUSsMphjIo2 pcxBzUvDTPlSWMrvToMJ1fvTVhxDySsBqPgrqhJ2qInUnKG8vFA3UstSc1IdlRCz6Ctu n5Ty/JH7P1wsVW4knMRx6EPCnOSObm110XjFhWyC4Ah4RAOGB2KcldrVVw20RoYJpEWq bW7JmCVEEnoXxSwEz5eT67YMNFtcfwG3xVA28GPQtPBHGp4TjhlMjOKDH5hGKabMRv4N H7YQ==
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=t5o0tcmHm0VA3A06d82J/IYyuG0CL/fvHJ9FJXWpz6I=; fh=Ds//ZdMCT4uYU7D8YkqS+Y5l9ZmUnjxfvAbiRp+G2sE=; b=UzRzXAStQurfbN6LjQAGIqt/qlxBmX/fIpAXNfAQJzR4F7P2U3O8N/+nRv7WMf+YvW X+ytdxPZhj52+YBlB6MlZavN6YIMxnrvlDwMWXyq0G2A4eeit7Oo7vH85Ze5oeCi3VgT dV2za4aa8nA57xSxRI43OoW49CucMnhDJB8lONQDJrLgOKa3dHHI5c3GQZki7ltJnc37 JIdF7OmB5hJI/vz6n1T/3URMPv2rozHnvAwoB+ZmbwiB0iMdPDP0gGGdgNeMXnDFtdiE hp0Q4uZjMr4XH6SL0irTccglfojc4xvJ0DydOH9o2DKGVInOYc2GDNt7+n71zE8FJ4o4 sRWA==; 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=1779381817; x=1779986617; 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=t5o0tcmHm0VA3A06d82J/IYyuG0CL/fvHJ9FJXWpz6I=; b=RIwF9IS1mbLN6CFWIGo1MvlJMKrIKxFVmPPfyv8Uhs2yoU5Oev3MnVuRLuOy1g1iL5 0WYuBzPRBk2MDutHhAMYqoceMXmkMpGRwDjXJDYDy73wC+OICrkyxMGmO+bPc0LjGAIc sNcrJVkwmB7A6QPLlorfPnaGlZ7Eb9tEGdsrmJ4oMR6kLCSb50J2IiOAlL71u21CeHQS 4zbRb+ZQXpFwlJg1exj/uuhXMQKBaWyLiFB89+umcg/2jLZXr2I2fn5otj1IdBbalSRX bmEtmx9a6wPC4Gn3a7DjxZDHz2UfE8nTSVt4YAxI6HO13LLm7c66KCciLlIZ0/ZQMAmr YjdQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779381817; x=1779986617; 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=t5o0tcmHm0VA3A06d82J/IYyuG0CL/fvHJ9FJXWpz6I=; b=kTBzrNusRJ0ObFn77i4fKj+vdVbMpRAKr8fZ53qFXRo26GZgsy023gq30Z8ddfblPf fhfS0ti5pDrzHpFR/RUyH5qbB9jqHIlbuJ9GFH8pGm7u4YefDX+0axJJ17awZw3HeHqP KXnK9CuuOVbu3SakBvi1HFnyEuYcbUC4DhJ2GkojHBpn1QHRiCssDU5pUkMAnOGOhCXc HjiT4N51nwSWrm0XUR/pAiuoaC0+zqQK4oNdIk0PqxwkmMd8W6qkfQQH8NR4FOdwZuZ4 7WnGkrTla/yACDWD7KOT6RXEilPyv/faYn3wa7KpChF3CdHbpfVyq/5X/TSscEUw2nuK onsA==
X-Forwarded-Encrypted: i=1; AFNElJ8/+DgoQ3W7kNfEOu+qd0VN8kJ/QI9ZU6N+0vxJgQwG+Hf1Vd8HXGqM6nXlqx46sL96UhcVol2Y@ietf.org
X-Gm-Message-State: AOJu0YxFVBuNGmXLmV5HucYGa4qkASnMB7EMrudBwGDPFRkhKwALXHjl dNCjXlp/9ZEkQqXiuf84iVxlvhr0qRweQnEtKtVsDmkXEOCKa645BnSW2gY14Kia4gQ1OFG3NUe r06T3c0dJmAfQvH6Q6sDNpivQqc/OZ/sLimnoDtw3Wg==
X-Gm-Gg: Acq92OEykhwCvMxposGhERv56okZZLbkKJ/SnDb66I8eKdVMwaaBLKSd2FztXIh/6At 5PV2VBcOFYMYWGhDrLVpSmkx1L3yxkTexg6O1AwqnHMI0j5qduiSs+4vQM1UJ138htsOmpY6lCE 3pbZWg/l/UTaCkATog+peN/o5d1AgRE9qu/57m0EVulXU1NaWLG3bpOsvITQ2EuINic7cSk69YH lFX+61wrCWtdKB/GEvzQerkCZgUyUisllGd9dAYhBboct/eWREpDoiDVUzfSQ331f7t7PH5rnVw j9GECA==
X-Received: by 2002:a05:6512:6813:b0:5a3:ff48:f7fd with SMTP id 2adb3069b0e04-5aa2ba96f00mr627017e87.8.1779381816990; Thu, 21 May 2026 09:43:36 -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>
In-Reply-To: <ZR1P278MB1170CAF8B0AA186B0A606836890E2@ZR1P278MB1170.CHEP278.PROD.OUTLOOK.COM>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 21 May 2026 09:43:25 -0700
X-Gm-Features: AVHnY4KNqMn_H_4e4kHwi1d8vo1VYYzshvsxAsmkwXlTEAxd9JDl4LGPeuLwMok
Message-ID: <CABCOCHRkbgqL0eBUdaeUkQMEErqG3ocO7kffta8ot6zyOHz4nw@mail.gmail.com>
To: Thomas.Graf@swisscom.com
Content-Type: multipart/alternative; boundary="0000000000001f2fbf0652569d11"
Message-ID-Hash: GU4OUEBGU2ZTHEM7CWPMSUWATBXKKR7Q
X-Message-ID-Hash: GU4OUEBGU2ZTHEM7CWPMSUWATBXKKR7Q
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: 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/MXoa9gW1JEqOFXvTSaeQSHf1DoI>
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 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] 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