[yang-tooling] Re: SID file issues

Vojtech Vilimek <vojtech.vilimek@nic.cz> Wed, 04 February 2026 12:07 UTC

Return-Path: <vojtech.vilimek@nic.cz>
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 0304FB1B315A for <yang-tooling@mail2.ietf.org>; Wed, 4 Feb 2026 04:07:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -4.399
X-Spam-Level:
X-Spam-Status: No, score=-4.399 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 9x3cjIov2MiI for <yang-tooling@mail2.ietf.org>; Wed, 4 Feb 2026 04:07:58 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 3E841B1B312D for <yang-tooling@ietf.org>; Wed, 4 Feb 2026 04:07:58 -0800 (PST)
Received: from [10.128.141.242] (unknown [78.128.191.226]) by mail.nic.cz (Postfix) with ESMTPSA id B36E01C0602 for <yang-tooling@ietf.org>; Wed, 4 Feb 2026 13:07:46 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nic.cz; s=default; t=1770206866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XLckOkBEm0MvN9YDTAVkwb+Iuadssfx6TVAqmmlalWs=; b=OHfTGfHImYWPGgzrGFWPnBp4zcAwBPgFV5ob8J8ohbYIBYRi/hPy3kg/PB/Ay34D6pvYtz wm2qv48NeHFBto9h9c5UqVmyQ3ipjq4Y/j5947JHUWaxmoRH7j3NVTFZdKYLI2aIIiTCSC jUzxwVX2tvSJ+EdGqUtWb77NxjPzdPI=
Authentication-Results: mail.nic.cz; auth=pass smtp.auth=vojtech.vilimek@nic.cz smtp.mailfrom=vojtech.vilimek@nic.cz
Message-ID: <0e0b91e5-1f92-4ae7-9350-19c9acc6a20c@nic.cz>
Date: Wed, 04 Feb 2026 13:07:45 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: yang-tooling@ietf.org
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <1263365.1770129015@dyas> <CABCOCHR01XcKfF4idFvg106gZ6v+9y9RTw2b=s74BG3oR6vRUw@mail.gmail.com> <LV8PR11MB853693E17838541878972DEFB59BA@LV8PR11MB8536.namprd11.prod.outlook.com> <CABCOCHSr1AxuDk_paF=uzrmvC3xN6ENtuy+_ACzD8+LKmGvjJw@mail.gmail.com> <1312393.1770205082@dyas>
Content-Language: en-US
From: Vojtech Vilimek <vojtech.vilimek@nic.cz>
In-Reply-To: <1312393.1770205082@dyas>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Spamd-Result: default: False [-0.10 / 16.00]; MIME_GOOD(-0.10)[text/plain]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; ASN(0.00)[asn:2852, ipnet:78.128.128.0/17, country:CZ]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM(-0.00)[-0.988]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[nic.cz:s=default]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]
X-Rspamd-Action: no action
X-Rspamd-Server: mail
X-Spamd-Bar: /
X-Rspamd-Queue-Id: B36E01C0602
Message-ID-Hash: LMYEKX5P4VHF2GUTF4G7IJMKX5J3WNCI
X-Message-ID-Hash: LMYEKX5P4VHF2GUTF4G7IJMKX5J3WNCI
X-MailFrom: vojtech.vilimek@nic.cz
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
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [yang-tooling] Re: SID file issues
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/pQRaOFnsuFmXo_O_S9K4w7ctg4U>
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>

Hi Andy, Micheal and all others!

Andy Bierman wrote:
 > Also for pyang, since the mainline 2.7.1 follows the RFC-defined syntax.
 > I guess the core-wg fork does not.

I think there is already some branch that is rebased on the currect 
upstream master.

 > The YANG typedef clearly identifies the absolute-schema-nodeid, which 
is the syntax used
 > by the augment-stmt argument.  The example in Appendix A shows path 
strings without choice and case nodes.

I wrote this on the list already. See link to the list archive [1]. I 
died off partly because I had an examination period.


Michael Richardson wrote:
 >> Is there a regression/unit test case that expresses the case?

Yes, see test 33 of the sid pyang plugin, files Makefile, 
choice-case.yang [2], test-33-expected-choice-case.sid.


 >>    > IMO this is a high priority issue for RFC 9595.  Also for 
pyang, since
 >>    > the mainline 2.7.1 follows the RFC-defined syntax.  I guess the 
core-wg
 >>    > fork does not.
 >>
 >> I am unaware of any issue/regression with .sid file parsing in 
cbor-wg/pyang

This is connected the the fact that the outputs of pyang before version 
2.7(.0) produced something which did not conform the the ietf-sid-file 
module, the code for identifiers was weird and rewrote it. Andy already 
found new bug for submodules. When I have time I'll fix it.


Michael Richardson wrote:
 > such that the the SID number stayed the same.
 > Current tooling (Laurent Toutain branch) will re-assign fun/a.

You are right it being a bug. The tooling should reuse the SID because 
the SID allocation is permanent. I think we will have A LOT of 
interesting debates because the YANG (semver) versioning is not 
compatible with the RFC 9595 SIDs.



Best regards,

Vojtech Vilimek
CZ.NIC z.s.p.o.

[1]: https://mailarchive.ietf.org/arch/msg/core/L5md7N1QtwrCdV5QUK_FOznpQVE/
[2]: 
https://github.com/mbj4668/pyang/blob/master/test/test_sid/choice-case.yang