[yang-tooling] Re: SID file issues / .sid file differences in pyang and core-wg/pyang
Andy Bierman <andy@yumaworks.com> Wed, 04 February 2026 15:22 UTC
Return-Path: <andy@yumaworks.com>
X-Original-To: yang-tooling@mail2.ietf.org
Delivered-To: yang-tooling@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 32434B1CB775 for <yang-tooling@mail2.ietf.org>; Wed, 4 Feb 2026 07:22:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -0.857
X-Spam-Level:
X-Spam-Status: No, score=-0.857 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, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham 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 xEgYfuixtPgq for <yang-tooling@mail2.ietf.org>; Wed, 4 Feb 2026 07:22:07 -0800 (PST)
Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (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 4C89AB1CB76E for <yang-tooling@ietf.org>; Wed, 4 Feb 2026 07:22:07 -0800 (PST)
Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-59de2ad4af8so602383e87.3 for <yang-tooling@ietf.org>; Wed, 04 Feb 2026 07:22:07 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1770218526; cv=none; d=google.com; s=arc-20240605; b=HRNHT1YMi8GczBfewU+54u943eKhZiYm0klmBqvX7ORkgLvUhv2fXMOqngRjGDJscu 1UVJmJ/fSvce2t9EQmNQxHBdITLlLApDIZn5sQkrrlzwimVczxM5And7fKv4Y0frhpIo uORBaaayO8SfsUMaYr4xb4sxNzk9b4jkxVS1Y8MCdRGZFD+f0uLqVf7yd5eGv4Ceu/rJ VbBtRLe69ST3MXCPQBvh2xniXvIkkPRmGnRlfZ1hJFwi3uA5RHCiKNhlyPQqdpz7Svqa C3mOZzebTeWAICGx/K67pn5mTaMtFPrUUclrcR9SGG5PadKuSLyOqNRplBVZNPSZYAoE n8cg==
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=IAKnaRLxBsUSGdC7H+X+HSHiJ+6k/FBn3CJcWUU5jL8=; fh=IzGb6kM9EYQQ1fVYUwjMZtT5rm1cthH65Uo4YW8b+Pk=; b=NQiTzAdyb02/vZY/8fKQI3ISddWqJ30KmnpFO0cxgq6Zc4DovSR95OwC811GqBVLZh /gBpLHjazLc/Nd/Hn3IfIRFWWr/44y7t25qJ1QUuC+5yTga0SwZ94CzexFGjEiK44NN2 i+J41KLRRtfeER/t65ZfWMwTNJzmK6x+Ya/4afMAWbHy8jJFRsQLtZp1xL9fkxVGjkzu ItXcqFFUUsfDqQd19fHhcgIsVEReFhP4Ftr6ZLXQwn3dEELCP3x6f6iOczMQeiuOeRnu 4Bg3KKHsKLu5vd+qnZOKGHLf/zLfqRCLqJPAdCL1ZI/0et+msK3IfgpXRY9k/Wd6ZZLa fojA==; 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=1770218526; x=1770823326; 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=IAKnaRLxBsUSGdC7H+X+HSHiJ+6k/FBn3CJcWUU5jL8=; b=nk8P+n5H7OZmPVhobG7ocrJyeu0JBV/R6bF2B4ufI07H5vMgiQGZU19CY37jEVdGq6 RA/QFVBaIQAJ0zQzIF2fSqVJtUNRP5nCz6KITYhGPnwRMmmmc/epvZ2HXPHaeBdnjVvG h/brot0PrjTN74PIZAsGcVWQCPmZLSilWA3Jw7c9OPpEbJNnz22wCndxKXF9j/vInAMh uLfV5o6FaehVP5bR0jXbpVShQ4BlEgm0gR0BLV+danihiwtewWJtfQ+npc/KEL/yUnRS Hga81N+ALpbqlMlFrmmDPxDM+UTDc4OWmJizxcmANLyki/6jP0ifgkkSsdDxDlZRc2VK xSzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770218526; x=1770823326; 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=IAKnaRLxBsUSGdC7H+X+HSHiJ+6k/FBn3CJcWUU5jL8=; b=liUIdmWp+rY0VL1HHHNgAq7ljGzMYwfCDVSpeso6//osJAUuNlsFSDvO+dGNrsmGdU CzbTgeQGRwllY2w4+nXlIdeOCJp/Ic5SzqZEidyvTFw7HYHJJexGAL6/FYb9OQ0mIYZI eq14eqhY1Sm2PbUufyYJCDnfEUSRDC+4PkERUUdkpQtC/vl06N65kco15qu72P+35lv8 sBv/gNHsqSmrF+NSU3Fgx2rYHhjgiLydvzINanUyQkcROgweGpwfKcvYRKVmC0ArrEky Mptfe8GcUuH1hHKBdnDHWPreSHn4qnJASK729gcRE7eskNoPP6HBYIIFDXnlO4u4chlP pOBA==
X-Forwarded-Encrypted: i=1; AJvYcCXHd8kUG4hYhyQCY3IseCDWQGX7QvidkOlDUD68ZMN1znHNVHhoUQXgXq3hFo1bNish/rh0p+JtkxZLc70=@ietf.org
X-Gm-Message-State: AOJu0YzHKw1FqZSSsLlV1TicT6ac4AofP08LpYQiKE3lL8688YR0Ooc0 ZZjAF92qEKZJWy2zNDFlWSw4tMw7BrCkQ0pF2GCDCggyQmWQESXF2FegGJKfX/sYoOnJ9dtJcHQ VqFsvIKRofIZefPL8V8B39n8rMk2NaNDHX2WB9ITkyA==
X-Gm-Gg: AZuq6aKREab9FC9ghUGbi1i3JNUy/2CQZ+/bFeef+rFhcyX36r7kQRGJVm0Dn2yBQja iFqez+ISiPSQR7XMJDHtCQJOYgF2j1e/eUAWrNj3ZEWCzVixRSvxPvLxO4i0wVXPs9S6LNQ9V5W yzRbJbB9kd9NZnVbZ2YPdM++9hi4R4MXqEhxRiih8K71khxxUXRWUcWafJuC85TqDLEcJX8jtu6 8BBaR8YrNMcS3xuEExDHxd0DKfpUxLLcEQMiUIOjxrvh0TuIx+sp3BIGBPH87yP5feijfuYqm6/ CxLn+pizQzWFUdv3/0+nE+eLg/PfCsmKMI5fsOjx
X-Received: by 2002:a05:6512:2529:b0:59e:3b9c:76fd with SMTP id 2adb3069b0e04-59e3b9c77ddmr266528e87.1.1770218525972; Wed, 04 Feb 2026 07:22:05 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <1263365.1770129015@dyas> <CABCOCHRHAEkiAJu=TtaZDERG9eiq_Ay9txRt10DEOgPYu3eprA@mail.gmail.com> <6c4f3e7e-ffa3-404b-83b3-9533f4046212@iotconsultancy.nl> <CABCOCHTWV2amW1wdHPQyd5jeaAVeie1S2xFfFf2ZgZQ6EbCKqg@mail.gmail.com> <4c11110f-fe64-414f-ad78-0183c61851b8@iotconsultancy.nl> <DDC68541-9A77-4AFD-BF36-DF6A75CF888B@tzi.org> <ce89bf21-8806-4590-9f37-a1eefa44b979@iotconsultancy.nl> <408BA8A1-AD8E-4CED-9991-B4632577986E@tzi.org> <7aca3e8e-ac46-4bb5-8b16-f75b51490b55@iotconsultancy.nl> <56406098-2B8F-402B-BE6A-AE9FEA9D7217@tzi.org>
In-Reply-To: <56406098-2B8F-402B-BE6A-AE9FEA9D7217@tzi.org>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 04 Feb 2026 07:21:54 -0800
X-Gm-Features: AZwV_Qj1VzkMlx3183eRgfgpYPSPDSpXijDC2A43sCVJk-sOsmhojqk4qvIqb4g
Message-ID: <CABCOCHQR30cSFqoFiYrj-PhX42r9o8zkSz9idVSOZYOyLD4A4A@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="0000000000006a6527064a011eb1"
Message-ID-Hash: LPORNRUF3APZCMS5QPO5PK5QKVAVN6RR
X-Message-ID-Hash: LPORNRUF3APZCMS5QPO5PK5QKVAVN6RR
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: Esko Dijk <esko.dijk@iotconsultancy.nl>, yang-tooling@ietf.org, Michael Richardson <mcr+ietf@sandelman.ca>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [yang-tooling] Re: SID file issues / .sid file differences in pyang and core-wg/pyang
List-Id: "Contributing to and tracking the progress of YANG tooling, as it concerns IETF work that uses YANG." <yang-tooling.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-tooling/V0cWPm5C-o5PsK-MXvv3tdqgnDE>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-tooling>
List-Help: <mailto:yang-tooling-request@ietf.org?subject=help>
List-Owner: <mailto:yang-tooling-owner@ietf.org>
List-Post: <mailto:yang-tooling@ietf.org>
List-Subscribe: <mailto:yang-tooling-join@ietf.org>
List-Unsubscribe: <mailto:yang-tooling-leave@ietf.org>
On Wed, Feb 4, 2026 at 6:28 AM Carsten Bormann <cabo@tzi.org> wrote: > On 2026-02-04, at 15:13, Esko Dijk <esko.dijk@iotconsultancy.nl> wrote: > > > > Hi Carsten, > > > > I thought "YANG item" is defined in RFC 9254 Section 2: > > > > item: > > A schema node, an identity, a module, or a feature defined using the > YANG modeling language. > > > > So this would include the choice/case schema nodes. > > Yes. > > > Or is there a difference between "YANG item" and "item" ? -- in which > case I'm officially lost. Interestingly RFC 7950 doesn't define "YANG item" > but still uses the term. > > They use it in the English sense for “things an identifier identifies” in > Section 6.2/6.2.1. > > > If it was not intended to assign a SID to each "item", but rather only > to a subset of items i.e. the ones listed in Section 3.2 of RFC 9254, I can > understand that. > > Right. Where do we need those SIDs? > I think Andy has pointed out there are usages of schema node identifiers > that we didn’t consider. > I think that is a valid observation. > One aspect of YANG that didn’t receive a lot of attention during the > definition of YANG-CBOR was “augment”. > While this is less important for many constrained applications, we sure > want to support that. > > I’m not clear whether we need RFC 9254 Section 3.3 "YANG item identifiers > implemented using names” here, which are the ones paired with SIDs in > “.sid” files. > > The name is just a local-name. It has the same context issues as XML and JSON. A SID is a mapping from a number to an absolute-path-string. e.g 106 == /example-box:box/a_choice/case_b/b NOT 'b' So anyplace a SID is needed, a path string could be used instead. (Current situation). > > If we assign to all "items" then we get quite some SID values that > aren't used in practice, in an actual data tree serialization in CBOR. This > sounds less useful for a majority of use cases. > > It appears skipping choice/case is intentional in the RFC design, although it is not clear. During review, I assumed the usage of YANG ABNF meant that all the schema nodes included by that ABNF are supposed to get SIDs. Somebody looking at the RFC 9595 examples and not the YANG RFC would assume that these schema nodes are skipped. IMO it would be better to give these nodes SID assignments but not critical if they are skipped. > > If we assume that SIDs only assigned to a subset of items is the > intention of RFC 9595, this this text and maybe 9254 would need fixing I > believe. > > The intention was for an automatic tool to hit all useful "YANG item > identifiers implemented using names”. > We might or might not be extending our understanding of this set right now… > > I was hoping independent tools would come up with the same SID assignments given the same set of input files. Manual SID management is not a good solution for YANG Push. Automatic generation of completed (stable) YANG modules is far more important. Andy A manually parameterized tool might do something different, but so far we > didn’t have a need for that (except for supplying a list of previous > assignments to be reused during evolution). > > > Can you confirm that YANG item is the same as "item" in RFC 9254, or > otherwise give some hints about their (intended) difference? > > I think we are using “item” occasionally in place of “YANG item" to reduce > tedium, and of course in “CBOR data item”. > So I think we should be careful to say “YANG item” when we mean that. > I think the definition in Section 2 focuses on saying there are other > items than those whose names we use to build instance identifiers. > The most useful/important definition of "YANG item identifiers implemented > using names” is in 6.13.2; we'll want to make sure we don’t break this (cf. > 6.13.1): > > CBOR diagnostic notation: [1734, "bob", "admin", "france”] > > Grüße, Carsten > >
- [yang-tooling] SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Michael Richardson
- [yang-tooling] Re: SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues Rob Wilton (rwilton)
- [yang-tooling] Re: SID file issues Carsten Bormann
- [yang-tooling] Re: SID file issues Michael Richardson
- [yang-tooling] Re: SID file issues Carsten Bormann
- [yang-tooling] Re: SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues / what namespa… Esko Dijk
- [yang-tooling] Re: SID file issues / what namespa… Andy Bierman
- [yang-tooling] Re: SID file issues / what namespa… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Rob Wilton (rwilton)
- [yang-tooling] Re: SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues Rob Wilton (rwilton)
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues Michael Richardson
- [yang-tooling] Re: SID file issues Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Laurent Toutain
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Laurent Toutain
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Vojtech Vilimek
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Vojtech Vilimek
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Vojtech Vilimek
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Carsten Bormann
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Michael Richardson
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues / .sid file di… Esko Dijk
- [yang-tooling] Re: SID file issues / .sid file di… Andy Bierman
- [yang-tooling] Re: SID file issues Laurent Toutain
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Carsten Bormann
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Andy Bierman
- [yang-tooling] Re: SID file issues Laurent Toutain
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Vojtech Vilimek
- [yang-tooling] Re: SID file issues Andy Bierman