[yang-tooling] Re: SID file issues

Vojtech Vilimek <vojtech.vilimek@nic.cz> Tue, 17 February 2026 11:00 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 D3DD1B8AE7D9 for <yang-tooling@mail2.ietf.org>; Tue, 17 Feb 2026 03:00:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -7.101
X-Spam-Level:
X-Spam-Status: No, score=-7.101 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_HI=-5, SPF_PASS=-0.001] autolearn=unavailable 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 pPFhlQe3G8SN for <yang-tooling@mail2.ietf.org>; Tue, 17 Feb 2026 03:00:13 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 2AE2CB8AE443 for <yang-tooling@ietf.org>; Tue, 17 Feb 2026 02:54:34 -0800 (PST)
Received: from [IPV6:2001:1488:fffe:6:2a0b:2945:82f3:47a3] (unknown [IPv6:2001:1488:fffe:6:2a0b:2945:82f3:47a3]) by mail.nic.cz (Postfix) with ESMTPSA id CA38A1C1030; Tue, 17 Feb 2026 11:54:31 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nic.cz; s=default; t=1771325672; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nmfQmHBGk9dUvsDzPedljvBsp6bNfk239BlQeGZrUBM=; b=iraSR31YdwqSM2iGEeT2R/gOnbHyma8dsdNNoCjsxGZWCo4uUQLFYLCgU7nlTGpjAZe8Tt dfYqsH7fxjkbpnavsWiAqicrBAa+6x9hYEtNUG/uPkSrQhYYVThfk+FxOH6Z5AF8olUTSw 7Ekx6kA2NYxejg7Vo1BFQz/Xm+AJukA=
Authentication-Results: mail.nic.cz; auth=pass smtp.auth=vojtech.vilimek@nic.cz smtp.mailfrom=vojtech.vilimek@nic.cz
Message-ID: <9c92c654-85cd-484a-9264-265e2c932bab@nic.cz>
Date: Tue, 17 Feb 2026 11:54:31 +0100
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
To: Laurent Toutain <laurent.toutain@imt-atlantique.fr>, Andy Bierman <andy@yumaworks.com>
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> <CABONVQaSb+7enpMp-H5AqW7ZMCgRh99UShOA0V26S4ji2gQNxg@mail.gmail.com>
Content-Language: en-US
From: Vojtech Vilimek <vojtech.vilimek@nic.cz>
In-Reply-To: <CABONVQaSb+7enpMp-H5AqW7ZMCgRh99UShOA0V26S4ji2gQNxg@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-0.10 / 16.00]; MIME_GOOD(-0.10)[text/plain]; WHITELISTED_IP(0.00)[2001:1488:fffe:6:2a0b:2945:82f3:47a3]; MIME_TRACE(0.00)[0:+]; DKIM_SIGNED(0.00)[nic.cz:s=default]; ASN(0.00)[asn:25192, ipnet:2001:1488::/32, country:CZ]; LOCAL_OUTBOUND(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]
X-Spamd-Bar: /
X-Rspamd-Server: mail
X-Rspamd-Queue-Id: CA38A1C1030
X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: WHITELISTED_IP
Message-ID-Hash: AFK76YXVQ527N55MWAXTR3JPKKBDARCU
X-Message-ID-Hash: AFK76YXVQ527N55MWAXTR3JPKKBDARCU
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
CC: Carsten Bormann <cabo@tzi.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/5TYvElQXOpXXMuyGAn7HIvY84K8>
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 Laurent,

On 2/17/26 09:20, Laurent Toutain wrote:
> 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.
> 

Yes, SIDs are generally used for byte-compact representation of 
YANG-modeled data. SIDs are equivalent to the (absolute) node name.

> 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.

You can only use 'input' and 'output' statements as child nodes of 'rpc' 
or 'action'. As Andy pointed out, if you create e.g. empty 'rpc' it will 
contain 'input' and 'output' nodes implicitly. The problem with RFC 9595 
example .sid file is that the 'ietf-system' contains rpc with implicit 
'output' or 'input' nodes which are not assigned SIDs.

> 
> 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.
> 

The YANG typedef is similar to C typedef. It is only a shortcut for 
specific restricted type, a bundle of YANG statements reusable together 
(and identified by simple name).

> Am I wrong? What would be the consequences if some SIDs are not defined?
> 
> Thank you for your clarifications.
> 

Hope this helps!


Best regards,

> 
> Laurent
> 

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