[yang-tooling] Re: SID file issues / .sid file differences in pyang and core-wg/pyang
Andy Bierman <andy@yumaworks.com> Fri, 13 February 2026 16:07 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 D0E47B702A19 for <yang-tooling@mail2.ietf.org>; Fri, 13 Feb 2026 08:07:57 -0800 (PST)
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=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 OpSgm_drBlAu for <yang-tooling@mail2.ietf.org>; Fri, 13 Feb 2026 08:07:57 -0800 (PST)
Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (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 EA9AFB702A12 for <yang-tooling@ietf.org>; Fri, 13 Feb 2026 08:07:56 -0800 (PST)
Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-59e5f5b336bso59553e87.3 for <yang-tooling@ietf.org>; Fri, 13 Feb 2026 08:07:56 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1770998876; cv=none; d=google.com; s=arc-20240605; b=Huv1ERxXyYhtfFVuVDfdaNC9hDzvYzJNkQJU5RV/vYYQvPxNW0RXbMTnaXjpVHWrDo 55/d4Fge/8vnwVG9sP18XPvEYaPH5a3d6pU2D1hcPdKWAATYheIQ9sWXG9NLLkKLkmtm YItM+zDzSz6heQrYVZ0z+Ye33xM8jLfmHDKjV58cAerwi0UKklIeJ0HMU1fkIDr2/yC2 hl34PPqmHbJ9hxSCW1tJMWDzHSc/RMJAOsYSq9LW+pKODNuCaVsEKAksW+AsLl6lTvkm PJrSY+RlrkX62/pcwfOKYQL5lOuqAs0JjZomB1dEmLaR+39r3uMtkGWKP5Ve4oztiddl Tj7Q==
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=nmhpCr2CNmjtHXfLKRJk0WYjw11ooPpMBt7kIUqBF6o=; fh=/0rJyql7e9jYSStlSFrCNR4RLyEjR4892wbwpGKxkdU=; b=MQSjQY9eeF2pGNDvZ6bwf69KP0FtG04qARzTLfC66q4k/djTse/66QqEMRTfUznaWA GG8RG2DswNPjlrZlb5uMHMOHK7BcKsmDLK2KhlVWg82ci0UUNm0fc/aaXpUJPQ/AgXVV 9oECjMhNYK9xS83Orhyx6CRJHPNrMRVps7CFM+wkuaKglZ+mpROoi6c+bwjSX8bA8jo5 gk5kw3X7Kjf4LoMIXLsy1CZWk6EUAVBs7rj6UKsna3/YnqtPiHxQxSKDC9pPERJufCN/ 7SUrKlzeI+VjMMU/tzObtGUtSIjPpJZk+InBwZzoHAHk8QqsqUT2b5qSjfoxX4abuvzT ThGA==; 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=1770998876; x=1771603676; 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=nmhpCr2CNmjtHXfLKRJk0WYjw11ooPpMBt7kIUqBF6o=; b=LSPqFrFRaRHeA8+QmGWsOijI8Fop1K++WuA8L4o0rBw6i/D1H5sh4gkmknaZXj3fOS OSYiCMaU6pQ15OFYyo0Dst5e8mixWdz+7QTmiknh8KW3Gl1tL2RxV9O+/eQtTxM21UhY +1Wc1X96JAYPT46i218A2nnMGUD1YBon5qxU5dB4Wixofs5vobPSrHZleDlQbcQOUbGo 4ik/Syr+nuhalfcz/5Q9Gz2HKghmnjE1x/aP7g4w2eFC2+ZmK5yoIFcQ/j8wcBSDB9hA PpdQBGejzhDLWAcPpEijJ2bY/Cq2heqdUxFjgqDU+niErJpcv6IpH2U7ieqBLVRh+7DQ CSUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770998876; x=1771603676; 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=nmhpCr2CNmjtHXfLKRJk0WYjw11ooPpMBt7kIUqBF6o=; b=OklyI1/EsraUS0VYGuO/QREzfa1sUowNE5e6N38Q5SawNcy5LALzasomQLeRFavaCT f+GxBHB7PUtF7qn9Hfl4+Ie0t4j9A6EreZ4N4Wpc+i2nu8WjxStmvdlXSS1RQp1XpHnT +mHus/Qioa9Yxua2rG0HHVe6offuxvKiSzaQG7Km2xFikJ5W+u3HkYntIoEgT58YwN+x tVvhynQD8Ga5N3X3uhoJ7YAkKqUrhb8PqKlkqBn1qvHHFzzRvZgSAk9iKolrW6LtNKJY IYLNxWJlhX9L0ZlUqtVJhGpuR+8nefARbHjL7p1hXx4/buQYPe3DJpPjhpFgiNA+k6H6 GA5A==
X-Forwarded-Encrypted: i=1; AJvYcCWmImM9YTv6TW4d2CZGqJ0HpnuNszYxZp5unoi+IXDSbRswtKzs7SmOtRj9Sc1+zcxyTWQKvsopCpx9ACQ=@ietf.org
X-Gm-Message-State: AOJu0YziY3prgMLjcLjGym6N66DGzsYNQ4cgrx5rAO7bfxyy3ycj0h8c UhXwgAkPrReZOZ+NYFfM3BQK6uR4NVckD24We4c+ew2jXAc4Awx4Q4QKoo8zEf4uqjFIfjOKkTp cdIuVJH9MYFBr805snwpu3622HguDhTlxZoP7gmDhEiT4jinL2bnNx2Y=
X-Gm-Gg: AZuq6aK78V+MMr7RttA+R5ou1XpmAFYc33gtw2LUzFJvGIClB67YkS3HDN4nbwWNC2b IKbWK54kIZ+1sBdKzjvmPjcBgveq+JgcGlYhvYt5+fcGdKR9rgL7Tl4UEtnYoA17OzC4J50IlY8 TMw/Ticziar8sDZ+8QYOlqiuUurlMxm5MMfuEfX8dmne+6F7yk4+RTxfgJk37SOT6LHP5TBLk3f opSexCNiNIkgocdDIoNHcMyNxZEWs/C3ca9luS9CcuLQJXIm0Q2ye8aiNqOXbhaxfQacJYED3Rw SLtxHRD2RJIfhmDHNxKt7NhiNK5Cmh216mBWpRrlO7RvmQU6Y/Gk
X-Received: by 2002:ac2:51d3:0:b0:59f:69fd:bd56 with SMTP id 2adb3069b0e04-59f69fdbf02mr439987e87.3.1770998875295; Fri, 13 Feb 2026 08:07:55 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <56406098-2B8F-402B-BE6A-AE9FEA9D7217@tzi.org> <CABCOCHQR30cSFqoFiYrj-PhX42r9o8zkSz9idVSOZYOyLD4A4A@mail.gmail.com> <ee28c8c1-fe81-4f9f-ba36-b60c74b5d156@iotconsultancy.nl> <CABCOCHR-oo5xK2bbagDUtK=1Mi5dBLjNT8r=4Y4QSJoFs0SgRA@mail.gmail.com> <b1256b3f-794b-40e8-a7e8-d1395fa7aa0d@iotconsultancy.nl> <EE144B22-21ED-46E8-8963-3D5639F377E9@tzi.org> <CABCOCHSzgtHZ3YpEwCrCtXBTFjusidzP3aCDbeJySM36toFoeA@mail.gmail.com> <CABCOCHTC-VTk5gBY7O95Au8eUF84pgVA2q4z7d8kY8N4hsFVtw@mail.gmail.com> <6E107270-5943-4615-A221-24FC6A66D914@tzi.org> <CABCOCHR32FgW_y54KTomJcD+kaFn_yqupr1-zCJJyHsPEoxX5g@mail.gmail.com> <CABONVQZTqmiGPW3WdEABPeLCwiJXoXxnWZqEo2zVVt0wLto-6g@mail.gmail.com> <CABCOCHR2ObrvyBW2B+vEQYWyo74XJz0S4SgLhPDDFnDvxSB--w@mail.gmail.com> <1519353.1770459201@dyas> <2318293.1770897407@dyas> <936f5ef6-3830-405b-9c71-3539e1fb69f5@nic.cz> <2376313.1770980183@dyas>
In-Reply-To: <2376313.1770980183@dyas>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 13 Feb 2026 08:07:43 -0800
X-Gm-Features: AZwV_Qj_77vwNcqPnKhaGnohJ9QS-tCqxahwxHPPQ1wdNloaeOix_ehJ39Kv-aM
Message-ID: <CABCOCHSj9_oV5v_Q_LK78J9We1SJ3onP5TXLP08RBaVandwbKw@mail.gmail.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Content-Type: multipart/alternative; boundary="000000000000dc1e35064ab6cec3"
Message-ID-Hash: 5M2MWTAXQPJRLU2S3GWMPPWD5INNPWDK
X-Message-ID-Hash: 5M2MWTAXQPJRLU2S3GWMPPWD5INNPWDK
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: Vojtech Vilimek <vojtech.vilimek@nic.cz>, yang-tooling@ietf.org
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/y-N3rNALEe9Zm99AczFzT44LueI>
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 Fri, Feb 13, 2026 at 2:56 AM Michael Richardson <mcr+ietf@sandelman.ca>
wrote:
>
> Vojtech Vilimek <vojtech.vilimek@nic.cz> wrote:
> mcr> beginning of the range could go to the end. I suggest (you)
> write an
> mcr> I-D updating RFC9595 to suggest this BCP. I don't propose we
> publish
> mcr> it, but rather keep it around for RFC9595bis and/or RFC9254bis,
> which
> mcr> I think we might decide we ought to do in a year or so.
>
> > I understood the consensus from the interim to be _NO_ SIDs for
> > choice/case at all, as they never occur in instance data anyway.
>
> Yes, but if someone wants NIDs, then we might want to assign them from the
> end of the range. And you pointed out that we assign a bunch of SIDs
> from the beginning of the range for a few book-keeping purposes.
> For instance:
> {
> "namespace": "module",
> "identifier": "ietf-voucher",
> "sid": "2450"
> },
> {
> "namespace": "data",
> "identifier": "/ietf-voucher:voucher",
> "sid": "2451"
> },
>
>
Yikes.
The algorithm in RFC 9595 is simple and robust.
Also, either choice/case is always encoded or never encoded.
There are no user options for adding choice/case back.
Since the path string omits these nodes, it is impossible to list them in a
SID dile anyway.
> (from rfc8366bis, ietf-voucher)
>
> The first one is the module entry point. It needs to be the first item as
> it
> gets the range value, and subsequent entries delta against it.
> The second one... I'm not even quite sure what it is. It's for the
> grouping
> maybe? It could go at the end of the range.
>
>
The module name is not always first.
Try generating a SID file with pyang of ietf-snmp.yang in the 'yang' repo.
In this example, the main module is only first because the list is in
alphabetical order.
This seems correct. pyang does not follow the include-stmt order, since
this can change.
"item": [
{
"namespace": "module",
"identifier": "ietf-snmp",
"sid": "1000"
},
{
"namespace": "module",
"identifier": "ietf-snmp-common",
"sid": "1001"
},
{
"namespace": "module",
"identifier": "ietf-snmp-community",
"sid": "1002"
},
{
"namespace": "module",
"identifier": "ietf-snmp-engine",
"sid": "1003"
},
{
"namespace": "module",
"identifier": "ietf-snmp-notification",
"sid": "1004"
},
{
"namespace": "module",
"identifier": "ietf-snmp-proxy",
"sid": "1005"
},
{
"namespace": "module",
"identifier": "ietf-snmp-ssh",
"sid": "1006"
},
{
"namespace": "module",
"identifier": "ietf-snmp-target",
"sid": "1007"
},
{
"namespace": "module",
"identifier": "ietf-snmp-tls",
"sid": "1008"
},
{
"namespace": "module",
"identifier": "ietf-snmp-tsm",
"sid": "1009"
},
.......
There is a bug inpyang that needs to be fixed.
{
"namespace": "data",
"identifier":
"/ietf-snmp-common:snmp/ietf-snmp-vacm:vacm/view/name",
"sid": "1187"
}
There is no such thing as a submodule namespace, but thanks for
highlighting why
I fought to keep them out in YANG in 2005.
There is only the ietf-snmp module namespace, not the ietf-snmp-common
namespace
augmented by the ietf-snmp-vacm namespace.
The biggest problem with SIDs is related to the fact that YANG does not
mandate the use of
specific imported modules, but SID does, because the expansion is done at
publish-time.
Carsten and Andy point out that the allocation rules would ideally be
> deterministic, so that one might not need the .sid file. I understand
> why one retrieves YANG modules and SID files from the target device,
> because
> an orchestrator/*CONF manager doesn't know which version of the model the
> device is using. I feel like it ought to just be a semver number, and the
> rest should come from the manufacturer, but that won't work ... at least
> not yet.
>
>
YANG is explicitly unordered in several ways, especially groupings,
augments, and submodules.
The ietf-snmp module has all 3, including submodules augmenting each other.
> The
> > old behavior of the PYANG is considered wrong and needs to be
> rewritten
> > together with the new erratum/draft-rfc9595bis.
>
>
> --
> ] Never tell me the odds! | ipv6 mesh
> networks [
> ] Michael Richardson, Sandelman Software Works | network
> architect [
> ] mcr@sandelman.ca http://www.sandelman.ca/ | ruby on
> rails [
>
>
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
> -= IPv6 IoT consulting =- *I*LIKE*TRAINS*
>
>
>
>
Andy
> _______________________________________________
> yang-tooling mailing list -- yang-tooling@ietf.org
> To unsubscribe send an email to yang-tooling-leave@ietf.org
>
- [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