[netconf] Re: yang-library-augmentedby: Mix of deprecated/current in leaf-list
Per Andersson <per.ietf@ionio.se> Tue, 19 May 2026 09:07 UTC
Return-Path: <perkietf@gmail.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 2907AF094493 for <netconf@mail2.ietf.org>; Tue, 19 May 2026 02:07:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1779181626; bh=vZHVuohI+Szf2egamb6LHm2QtVv51ajFnIuER0JRA4E=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=Xrnbe4shYSwSWxF6LQZo9g2Kj9v9fmSeebYBOZzapiwUcjUG0+Iv1PcZTJaz4zi3g t8kpJE4aQLtDb4GIN7IM8TFG7JnweTNyhDxZ1fxh+K56XpiLRmhQmV9WD2eg6JjQSN 2jIE27TCAsmvdyGByLi+1haBBTP8zhP9kMiMuIGg=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.894
X-Spam-Level:
X-Spam-Status: No, score=-1.894 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 W27qz3pcjN4j for <netconf@mail2.ietf.org>; Tue, 19 May 2026 02:07:05 -0700 (PDT)
Received: from mail-pl1-f172.google.com (mail-pl1-f172.google.com [209.85.214.172]) (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 1452AF09448B for <netconf@ietf.org>; Tue, 19 May 2026 02:07:05 -0700 (PDT)
Received: by mail-pl1-f172.google.com with SMTP id d9443c01a7336-2bd32031eeaso4952815ad.1 for <netconf@ietf.org>; Tue, 19 May 2026 02:07:05 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779181618; x=1779786418; h=content-transfer-encoding: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=rNSZtkyLJ2oCXC0LGo2fGlQ+EIJmLdChy1nlwV+8QkI=; b=dx1iTMXM+Tl9+3INsSYenVpJUMm3eCoTx6l20rjbX+KbBE5A+PIR/QPTs4s21+pHNm Olhr70GeT5v4V1Lx1TUeOc70DwIK3T42o+f5kvgUWQd28r3por25Aj1R+uUEWsseSrwa TosYjoyaRxVtJJ8LDkmeowO+93Vaa+ZGfdVVo1qTtUQMHUNdFJmDMgl4TLoQdzQvoWvv Sr5pslD8aVsPSNQC5zlNQAn32HidRlIFt9IO8KLOutnuNh3y2kpk+CD8yufms0C8+sBj IMxeavs2pRyiltkHs/i3Qq5DTdIG579yK/qrt1+GzGDY+6ku6cGjeCMXjtIqtpDgWy+1 7YBw==
X-Forwarded-Encrypted: i=1; AFNElJ/QuBTlXkf53TdHNvg7iBkGqR4qNp3Pkq3gzQ2Y8BxYxuVT3Z9Rwg4mCkypYv3olT/xv5VMnEAB@ietf.org
X-Gm-Message-State: AOJu0YxW4g3ae+HGlMHCoUsMn86aW+yb8WAitHR+16dBtm9Y3NrMFsSD dQzkBvhKauhXhsotWj7QlnYEWgq3dXP3Jv0sFoBQn8Gkm31jOGcD/AE3znuLd1+l
X-Gm-Gg: Acq92OH3WQv3ARohJ8LPtlTr4Cs3w4gef3DPgXXRLk0aRRRoAaVh11cVLKv8tsNWf3B pTX5IWEIqnCenqTG6sK2YXLSD5YxH3KO0e6OiGrtnItFzd7pYaIAo+5IVe4nlo6vCLWjSpEodlv zcaUXjsV7IFLZSpNmIVAqJk6dOeMD8wty/DzVu//a6U+0ufJ33j4FHwH2EntbZfqMkjde/O8nha BHAxsuKsV4jc0R5aOECoRIHzYJwXj0UgGUYvbVYKRrmb7bQ8CF1BqC9NVCcgghPJrsc46tZBTpG ZydiJldebi3X2gUqPncsV0tZSpzKCPhsnKuHibBdjTUld1HBW0ShAefQjYoNkchZ4C7aqJ1y5Xl jNp0CF8qH5WFaK38KgZBs3VnB0d0ipdX9yhqcuN2MkKKA2nXFkrkOiVn+r39inkauBhdoL5h51v PyXHgVr7PlSoBCjRehvF/WRlKuzqNyNWka2j75OejKMhiF8qtSFr7oC0WjQFrjWzsfE7rQ8ylBx 5hhjyNCiX21/cy3UrnM+aIdYlEteX86VvEyDFPiLTa0V4PRsQ==
X-Received: by 2002:a17:903:4508:b0:2bc:ee93:ddc1 with SMTP id d9443c01a7336-2bd7e8d0d13mr82657785ad.4.1779181618140; Tue, 19 May 2026 02:06:58 -0700 (PDT)
Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com. [209.85.210.178]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2bd5d0fc4a9sm179196055ad.61.2026.05.19.02.06.57 for <netconf@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 19 May 2026 02:06:57 -0700 (PDT)
Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-83538fcdda8so189863b3a.3 for <netconf@ietf.org>; Tue, 19 May 2026 02:06:57 -0700 (PDT)
X-Forwarded-Encrypted: i=1; AFNElJ8Bbk0l7c2Y6Zpr7RbOTZm5YQqKzLSpERppartUX4vkhXiVbBMzg5kXyfR7dkzWXQ9gFlkP/lwX@ietf.org
X-Received: by 2002:a05:6a00:18a9:b0:835:45bf:965a with SMTP id d2e1a72fcca58-83f33d20549mr10319384b3a.7.1779181617212; Tue, 19 May 2026 02:06:57 -0700 (PDT)
MIME-Version: 1.0
References: <CACvbXWEiQdPr4fEOi4dbkU-jxNiXrJ+SURob-BAh0dO4fx2oPQ@mail.gmail.com> <26cdd38a-d937-4f44-89e3-8d34d9012360@everything-ops.net>
In-Reply-To: <26cdd38a-d937-4f44-89e3-8d34d9012360@everything-ops.net>
From: Per Andersson <per.ietf@ionio.se>
Date: Tue, 19 May 2026 11:06:45 +0200
X-Gmail-Original-Message-ID: <CACvbXWEL=UY7Y25TER07WhK_yq1NdrEuXV_DTVUc4exTS+qzDA@mail.gmail.com>
X-Gm-Features: AVHnY4L5LNoTPBRyTuHhZFAX_dmBtb1S6ilIUMIPSFInbOeNKIGbi0TvJD5z0_s
Message-ID: <CACvbXWEL=UY7Y25TER07WhK_yq1NdrEuXV_DTVUc4exTS+qzDA@mail.gmail.com>
To: "Benoit@everything-ops.net" <benoit@everything-ops.net>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: UVFAEDAXHIBJAZOMZ76FOZ7H6HKF346E
X-Message-ID-Hash: UVFAEDAXHIBJAZOMZ76FOZ7H6HKF346E
X-MailFrom: perkietf@gmail.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/Y4IEfHlIjF7Xgiw_EO_KORbKMxI>
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>
Hi Benoit, On Mon, May 18, 2026 at 5:58 PM Benoit@everything-ops.net <benoit@everything-ops.net> wrote: > > Hi Per, > > Which YANG compiler did you use? Which version? I used confdc, the warning is reported on both versions I tested. $ confdc --version confd-8.6.3 $ confdc -c ietf-yang-library-augmentedby.yang ietf-yang-library-augmentedby.yang:76: warning: the "leaf-list" definition is current, but the "leaf" it references is deprecated $ confdc --version confd-8.0.22 $ confdc -c ietf-yang-library-augmentedby.yang ietf-yang-library-augmentedby.yang:76: warning: the "leaf-list" definition is current, but the "leaf" it references is deprecated -- Per > Thanks and regards, Benoit > > 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] 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