[netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
Andy Bierman <andy@yumaworks.com> Thu, 21 May 2026 16:01 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 5321EF2953BB for <netconf@mail2.ietf.org>; Thu, 21 May 2026 09:01:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1779379303; bh=yjaxK0bZwPCaN9G3OZWiGR2egBGT+MA/9Q3kSGSlxYk=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=ltGmz4HG3LQGmvqVb4hR9QIzJwWD+JddyV3zZckLQdatgdVUE8Oxka/dERqlmbXGz p+OqiA/+x69uME8xdHL1YopcLohs97hVlSE331+Cavrj9miEXKC09frrlaJEv0b0kX qtxJFaT6doHacTSZ/ys36qdiQE6T1DNFvcGXOD0A=
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 OtJ1NqKLXqm8 for <netconf@mail2.ietf.org>; Thu, 21 May 2026 09:01:41 -0700 (PDT)
Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) (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 18BD3F294953 for <netconf@ietf.org>; Thu, 21 May 2026 09:00:56 -0700 (PDT)
Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-393933b8c6dso7077471fa.3 for <netconf@ietf.org>; Thu, 21 May 2026 09:00:56 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1779379249; cv=none; d=google.com; s=arc-20240605; b=iHk5S2QOrBri4VOIS5HTHByrPj6tMXdPB8vQgnSDA+13T4IC/EXgk2MovwoPOwOd2J K3cEROi9tNHxTJkQWrtixO94JL+2KT6TnhbK0fz8TByTwschTUlNnUMBvyHuCX0xIULc HAHp6lLHxQEd3fqYnRWFFVvK+4tcHm3XwYZYwHGgp9azog9Av429WHiUEBmX53c/a1gE sb1fRB51F81IhrkV9fYPFUltQWbs3swMe8CoqnAV6TlGLrtx7167VgidGEPvX43IjEiB q1MvRKpzPK44KtMcugPT/CwrWz5qZf8JGIPEdVt7FZG8B2ut+FozqR/ClGwsObwyeM30 YvZA==
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=wz/3iHV2kPrSxgJtejMRiicAMXk1MHK6sbAUB8Yorw8=; fh=hTbTanwJPHf2jaN+7rq8/TQuJRyP8hWJmCpPD1wVpV4=; b=QczHYEop1JREU+33TDiIjifRbcrQ97yKwyXoQCmxDZhi8/DsAxI3hagRp33/PZytJp s6P5rW3GYVc6uxUUlF+vb5x0g00TRoPTOt/ZKQQiHmgh/xFAO3zt3TWJRch8A7m9pgms 9z9YOf53nrliekx0pyQQ1Sp3CU7Osn5Zi6ivHJQelYIflliZYGSyDfBQAd4V+4Cgn0SG jZiSxJdL0JAaSfgI05bFHxjXilwDluxk6zXOD1RJAA1a7t6SBLd6eeXm402Z8znhhHOL BqoTHotvcZKFmMwbEkV9vNW8X3Qzj/WlLxDTy8w3NtD440PcSlAy8TJU2jPBQIGRtc+Z o/FA==; 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=1779379249; x=1779984049; 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=wz/3iHV2kPrSxgJtejMRiicAMXk1MHK6sbAUB8Yorw8=; b=ROSPCJW/g8fuYfxJMMNvmMMKEARg24KGR1mBS1Kk0EQcy2gUEYJuDl489X9BJxH/ET Rchsotv5AAM41JC8g68gDD9x2B3ipKbLcxs3RtXVUKuYmTosrJyqI4hh/HCho1Fi85XS GxtcPdtqXmngIGgowaJEvejthxfYZAQq7UFFXmyLblv5lBi/1tAR8SPTUkoPFjgS1Fq/ dfgN8mMSukHnh7wP4S15r+s5DKm9mzCfZDxGK3GH00jg27uewKx+X5vGS4YlbIpAqUbO 01E/y+4sbWvqArxRW28ybUYt7rTAA5vI9tEfhcMozBHfzphPuH9S3KfsQnA1k1TyRwPF RSpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779379249; x=1779984049; 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=wz/3iHV2kPrSxgJtejMRiicAMXk1MHK6sbAUB8Yorw8=; b=i5aNMnh9Ow6q6zLmEFJujs0BvmDTMANSF2ltpgzhVwvmG6HXIlcitx6rsYISFfx/B6 qDEILr0kLhOBgG81neSpbxpsDQzYWetAeXY9Fv46LwdMNl3VDFcayc2nehUIIyW45Ffl sd3jYgQDjAlEY9GoKwd2gIkDfJ75H5fiYXCMRotfUQY9MNV1gBfdQiUsulPcQ+cWKYPi 2UnGen5Jz7Cs8Z+WZPpCzQSc/1VA8EoM+sNDVNq+v9w+Gmtmfm/n+3BZaPeML0wbkK7N vGk8Eh6Iu6pTEYJS1KegCXjYfe7XfV8lXgRdq6YYoiJD8+Nso0FWKG1m2O1CNg0tXkYk MKqA==
X-Forwarded-Encrypted: i=1; AFNElJ8nl9xe2/cotxhlVHr8x2GNhEIIwY1cnxI8CTGB7ZhkFnojddgsmMd1dbdDkfFJ3Uu6TcXPgZFW@ietf.org
X-Gm-Message-State: AOJu0YxHjW8nwO2rgoYGTvP29vxXj6qit+SH+OWuWDABv+3MC2Du1zk0 K1kFk3uSMnxeqcgTvuZ47BwvOHv3hfHfKQiIB0mm1HySCr5jNBM1hbfpFlRk8AXzHj4tRw0Ac+J 3pWlO0HQayYD5dSuBdEO8Ytmccq3sf0eihG6mFpYxPgnXwy2OkNW1H9k=
X-Gm-Gg: Acq92OFspzdY2AKZAbDVz1kBwe56VUypMvOkjofvJBOCQf8HBiloMxhmyauCXoUDBFN XaxoKKHfndnMMW56ujE/QtKdQqKs7kGaaw6GUFT2fph1MDMxqbi6pmphfMun8HLVGlEaHV9GZ3U HrS96tRxWPNSKoIWn1ZwXQMeL8J3Sg0Kq/9+c0u89QMNClE03QZihTbR975McpwYCETg79paF3o 2RCdszmizLYI5btMWkvuyPB0N4HxOCWpXXflaq8aCyhChfM06PcuteheEDxJ7Oa+nlaUtPZJB/F 4LroGTupKQRttlK3rn4waQM=
X-Received: by 2002:a05:651c:983:b0:393:5904:7411 with SMTP id 38308e7fff4ca-395ca663d41mr5455291fa.3.1779379249015; Thu, 21 May 2026 09:00:49 -0700 (PDT)
MIME-Version: 1.0
References: <CACvbXWEiQdPr4fEOi4dbkU-jxNiXrJ+SURob-BAh0dO4fx2oPQ@mail.gmail.com> <9c82e986-d2d7-4db7-9703-e5e83f260c70@everything-ops.net>
In-Reply-To: <9c82e986-d2d7-4db7-9703-e5e83f260c70@everything-ops.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 21 May 2026 09:00:36 -0700
X-Gm-Features: AVHnY4I_xnz6LtDOOiwi4h7y2GPlgOYEGsXIttQiQfRWHIc5GGOrv9qNkC_40Zc
Message-ID: <CABCOCHTat-b7PvbpwjE-uLBSfLNx45rT7i9u9RRRCejPNuB1Nw@mail.gmail.com>
To: "Benoit@everything-ops.net" <benoit@everything-ops.net>
Content-Type: multipart/alternative; boundary="0000000000000efcc70652560424"
Message-ID-Hash: 2WQP6JGKCX35CTSEB6KMRFICX4RAWCVU
X-Message-ID-Hash: 2WQP6JGKCX35CTSEB6KMRFICX4RAWCVU
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 WG <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/SJ6CsqHRHjq2saEgi6Ggh3G_YK4>
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:18 AM Benoit@everything-ops.net < benoit@everything-ops.net> wrote: > Hi Per, > > Now that I had the time to think about that, I believe that we should be > removing this part > > augment "/yanglib:modules-state/yanglib:module" { > status deprecated; > uses augmented-by; > } > > > The draft-ietf-netconf-yang-library-augmentedby clearly mentions the > import of RFC8525 > > import ietf-yang-library { > prefix yanglib; > reference* "RFC 8525: YANG Library";* > } > > So we don't really care about RFC 7895 any longer. > Let's assume the following situation: a server had not implemented RFC > 7895 but wants to implement RFC 8525 > In such as a case, they would not be implementing the deprecated > "module-state", that covers the previous ietf-yang-library RFC 7895. > > The RFC 8525 module includes the deprecated /modules-state subtree. I have not found any clients using the /yang-library subtree. All of them still use the deprecated /modules-state tree. Using a deprecated schema item is a warning in our tools. Regards, Benoit > > Andy > On 13/05/2026 17:13, Per Andersson 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 > > _______________________________________________ > 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