[yang-tooling] Re: SID file issues

Laurent Toutain <laurent.toutain@imt-atlantique.fr> Tue, 17 February 2026 08:21 UTC

Return-Path: <laurent.toutain@imt-atlantique.fr>
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 3C169B8A3BA9 for <yang-tooling@mail2.ietf.org>; Tue, 17 Feb 2026 00:21:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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_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
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (1024-bit key) header.d=imt-atlantique.fr
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 cF5LQuLfSMkk for <yang-tooling@mail2.ietf.org>; Tue, 17 Feb 2026 00:21:09 -0800 (PST)
Received: from zproxy2.enst.fr (zproxy2.enst.fr [137.194.2.221]) (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 627E8B8A3B9E for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 00:21:09 -0800 (PST)
Received: from localhost (localhost [IPv6:::1]) by zproxy2.enst.fr (Postfix) with ESMTP id A2FE8807A8 for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 09:21:05 +0100 (CET)
Received: from zproxy2.enst.fr ([IPv6:::1]) by localhost (zproxy2.enst.fr [IPv6:::1]) (amavis, port 10032) with ESMTP id KO-sMwFJTYNu for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 09:21:05 +0100 (CET)
Received: from localhost (localhost [IPv6:::1]) by zproxy2.enst.fr (Postfix) with ESMTP id 71DF5807B2 for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 09:21:05 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy2.enst.fr 71DF5807B2
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1771316465; bh=LrPsaiRp1SIeKqErhTmSYJX7JuP9qlF5ofdGr9mfz5A=; h=MIME-Version:From:Date:Message-ID:To; b=g7GTJf3btBXqQyzMJw2FpbLWheFtfN4lV5VELLs2oqwWDv32iKmcZN/h9rNWDjmfL 9mbqMGvp6RNWUecIY7mMAlAzUOt8KtBdAkqTn4mVfHCY7zCpxnDdiUPAArtiZwu/I2 6t81wZTIMphbyip6OP5cQBWmQ7JpxmQCXyalKk38=
X-Virus-Scanned: amavis at
Received: from zproxy2.enst.fr ([IPv6:::1]) by localhost (zproxy2.enst.fr [IPv6:::1]) (amavis, port 10026) with ESMTP id kqUiCgn33Irc for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 09:21:05 +0100 (CET)
Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by zproxy2.enst.fr (Postfix) with ESMTPSA id 3BE8D807BB for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 09:21:05 +0100 (CET)
Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-65a36c8bcabso781543a12.1 for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 00:21:05 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCX9Rj41ggoCGPhWr1+Zz4mK5RuA1HdLYHRbZrn3zGds9v+9JPtvhgJB9TMq5op3D2ipPZ4cnf8U88WQsi4=@ietf.org
X-Gm-Message-State: AOJu0YykiEcv8GXc4WglvJsxVNvg0NvoMV/A+pA9+tcFup2ldRjS8CbP H7yTzCCA9Kc0DsjcKAx3NuULaBkosrMMr4gSDIHfJriLw7XC2mYbtGfDnh2Uz+xJuEKoTd8y8m9 N08SP56yVSi5qO6KKEOY+CVRxwnwyRn4=
X-Received: by 2002:a17:906:6a05:b0:b87:117f:b6ed with SMTP id a640c23a62f3a-b8faccffef1mr790999266b.21.1771316464754; Tue, 17 Feb 2026 00:21:04 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <38edf0a4-cdf0-4d25-a28d-b373eac88000@nic.cz> <CABONVQYMO02-1QYx=TFDL+zf7Wz3n+C4ckqo93PD3=tpnT-oJw@mail.gmail.com> <7ca3bb5d-5245-4cab-b9e5-a2c99237c284@nic.cz> <10E36232-B43A-4BD3-9CD4-3F72954B5D4E@tzi.org> <CABCOCHQ2vb_sBgtiYajUD-FWZHXN83MRopqiHzbNjtynp-Qs9Q@mail.gmail.com>
In-Reply-To: <CABCOCHQ2vb_sBgtiYajUD-FWZHXN83MRopqiHzbNjtynp-Qs9Q@mail.gmail.com>
From: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
Date: Tue, 17 Feb 2026 09:20:27 +0100
X-Gmail-Original-Message-ID: <CABONVQaSb+7enpMp-H5AqW7ZMCgRh99UShOA0V26S4ji2gQNxg@mail.gmail.com>
X-Gm-Features: AaiRm52Dmi7FvhhVrGkD2eiO9jHtTMQRfvMjg1GZ9lkquzK7Rho6-oDhk2BFepE
Message-ID: <CABONVQaSb+7enpMp-H5AqW7ZMCgRh99UShOA0V26S4ji2gQNxg@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
Content-Type: multipart/alternative; boundary="000000000000aaa635064b00c0d2"
Message-ID-Hash: W2Y2ZY52POM76DDOWMMBCGS6WCYB5ZAR
X-Message-ID-Hash: W2Y2ZY52POM76DDOWMMBCGS6WCYB5ZAR
X-MailFrom: laurent.toutain@imt-atlantique.fr
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: Carsten Bormann <cabo@tzi.org>, Vojtech Vilimek <vojtech.vilimek=40nic.cz@dmarc.ietf.org>, yang-tooling@ietf.org
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/bGLKzQkZkMCHWSZXBVfXv0_gwxs>
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,

There is something I don't understand in the discussion about RPCs and
input/output. For me, SIDs are not here to represent a YANG module, but
rather a way to serialize information in a more compact way than JSON.

SIDs are just a way to point to leaves or sub-trees. If there is no RPC,
why impose SIDs for input and output? And if there are several RPCs,
several SIDs will be needed.

For instance, in the SID allocation I'm doing for SCHC, I don't allocate
SIDs for typedefs, since they do not appear in any serialization.

Am I wrong? What would be the consequences if some SIDs are not defined?

Thank you for your clarifications.


Laurent

On Mon, Feb 16, 2026 at 7:23 PM Andy Bierman <andy@yumaworks.com> wrote:

>
>
> On Mon, Feb 16, 2026 at 4:49 AM Carsten Bormann <cabo@tzi.org> wrote:
>
>> On Feb 16, 2026, at 13:45, Vojtech Vilimek <vojtech.vilimek=
>> 40nic.cz@dmarc.ietf.org> wrote:
>> >
>> > Hi Laurent,
>> >
>> > I meant it more as an requirement of the RFC 9595,
>>
>> You mean
>>
>>    Note also that RPC or action "input" and "output" YANG items MUST
>>    always be assigned SIDs even if they don't contain further YANG
>>    items.  The reason for this requirement is that other modules can
>>    augment the given module and those SIDs might be necessary.
>>
>> (last para of Appendix B of RFC 9595 [1])?
>>
>>
>    The "rpc" statement defines an rpc node in the schema tree.  Under
>    the rpc node, a schema node with the name "input" and a schema node
>    with the name "output" are also defined.  The nodes "input" and
>    "output" are defined in the module's namespace.
>
>
> The input and output nodes are not like other schema nodes
>
> -  they are hard-wired to always be defined
> -  they are defined in the same namespace as the parent rpc-stmt
> -  it is not possible for another module to add its own 'input' or
> 'output' nodes
> -  the NIDs for these nodes are simply 'input' and 'output'
>
>
>
>
>> If the examples don’t meet this MUST, we’ll need to file an errata report.
>>
>
> I believe pyang 2.7.1 generates input and output nodes correctly.
>
>
>>
>> Grüße, Carsten
>>
>> [1]: https://www.rfc-editor.org/rfc/rfc9595#appendix-B-6
>>
>>
>
> Andy
>
>
>> _______________________________________________
>> yang-tooling mailing list -- yang-tooling@ietf.org
>> To unsubscribe send an email to yang-tooling-leave@ietf.org
>>
>