[yang-tooling] Re: SID file issues / .sid file differences in pyang and core-wg/pyang

Andy Bierman <andy@yumaworks.com> Thu, 12 February 2026 18:08 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 A260CB65E0EA for <yang-tooling@mail2.ietf.org>; Thu, 12 Feb 2026 10:08:13 -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 phjTV51quii0 for <yang-tooling@mail2.ietf.org>; Thu, 12 Feb 2026 10:08:09 -0800 (PST)
Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 955CAB65E0C9 for <yang-tooling@ietf.org>; Thu, 12 Feb 2026 10:08:09 -0800 (PST)
Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-385c2112ae5so25401fa.3 for <yang-tooling@ietf.org>; Thu, 12 Feb 2026 10:08:09 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1770919682; cv=none; d=google.com; s=arc-20240605; b=ECK5HsGeZBwyyfagSIIHphqQf5hebS/d6hr7GhKExFTLMk+5eESyLo4k5dSzubNkpf do5oziuGS6od+xOpMj9aVB/YiWSwymmE8ohIvxo4TxdWA279orSWwio7gtjK/L7NvYs0 XeZjrcHoahhvVDDLLbD8zSDWNmVEhOnQATILp2r81QtGfJ7vHslwXc5wjCN/6mvXbfkm 0YAPOyunseNfpVsylO++INISpgK0YYqwfUfSLfOgwM8M497v1zkBxInqrkeZbj0Vj3T0 zf0iFR3RxmIySFrwOFbwKfSqspw4EXjBa2ye+mR9ChGsCXtdB0oyvY4nGrgxYPgbs+0d 90xg==
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=v75H9DOmpESkncSYFy4s1r/n0YwyHUfWzY2VIfnWRls=; fh=w/AvK6UZcU6KzZdhgQ7QJX95m+rVaRmG/zqxreJURR4=; b=T5J/dWcoAEoov54B4qTVdQvO1NTT5wt+N7Ch8N9o9gu1i3Ph8edGu1lBl/a54GqF87 yzkYmP3vISaj5o1DVUd0BvIGUpYOG7JSgB8liIDNnEAJDtILYBQyoTn/rCsaia+hm1kY 5t6sVLCFwCWy8n2nkSEo8L+khvWR5IaBFeQC806Dt9iObhWAashRhahO/tNNyVqlpQcr tXAPkHd3B861iL3CsnZAdwru56tvCaxH3HiUvwokE7ECSWW2C2RBFiQUA4YaGtJEaihy lrnhYUnYF4eqWVJ+zabIJkKDpicgaPPQ97o487vzp5Axi0GXEcOlkk/Nzmqeqv1M5L16 I81A==; 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=1770919682; x=1771524482; 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=v75H9DOmpESkncSYFy4s1r/n0YwyHUfWzY2VIfnWRls=; b=ZDqKiw74w7bqcYytqQUYhi71v3xDdIgFkHC3QcvL/d9NpqJWlny/1HHGj56miW/FaG vFLxJeUb6T6LuiWNynhdniHEVoROkBUIuxD5+C3o00s4xOxTHgLMbfQTLUw/+O23jYr6 vepQdHPW9I5gb8Pd/vPmMD8nlBIo6XPfglZVKy7k8I5IqIFijqRxYLUyODbc//D8DW0e Z0OBEBTPrKdggIH8uvLH5muXB4Yfq1Xyd/OpP6bUJR2tLttfxknAv6I4uBuEqEETSpVl jAdyXpriW5y/j4ur9iGf7goryDfP/fyUr8LNnWagPRneh9TS0xaywGdYV0cug8n/w4Z1 8FQA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770919682; x=1771524482; 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=v75H9DOmpESkncSYFy4s1r/n0YwyHUfWzY2VIfnWRls=; b=ZmWXF0YP7wKwVlK4FcSMNIUYcxPiGr8Zn/pUMARP+AUm1qaZYruul0liDwvMTswwF/ WYAh3Mkp/MBsFmUHsCxcKbTy3lNV7eJK/Eyc2Ng1tKhNZyVElgbdnEisfcxJIPeZmXj2 SJyLe9Zn7CG2BSju6UU9jJ5+fuJTBXyf1Zvn/NpfAB2/Qz8Ja6RduwwIeQQ31Mr1bu00 ZUi1dvLuTOVHeeyQ6k6+KpiKMZChukll0x/laCCb8TxTF/bxOBHenbx/oI95UbatxthR jMAXojUbeIUHXHYg2A9LjnWTrWy2YHKZOuihEhhJ/i6sY0g4Gf9SX3kvcRZSLC5xyHoH 28Cw==
X-Forwarded-Encrypted: i=1; AJvYcCXbwNQ4QHgrdXvnUMHBlqZ1CV0KLlD1OPYihubbZebX4GIkxdLl68i6rDddfFkNj0FmTZMQjk5/tJZyVj0=@ietf.org
X-Gm-Message-State: AOJu0YxJaqnRPbARS5X+IEBfNiHdVtDX1/t354eZoOOBS+x7C4xFu7Tc 4RlOSuDB/LzJMQ9CTENsloqulstsLCEaDtuJ6pmVIj08uS0sOv8hoktmRw6goHjObQ4YUAYiBFp lGDnTkazvi6CieloGqklbz++kqt54Pl6+HzgM/bnmUg==
X-Gm-Gg: AZuq6aIqd4O1IG1ejyueyuzP65tBj7uqgbRCs+I8m7rzeM33XHhSTKuuHPh0THAFmu5 ZviBIrpDZdVrOuT1iyW3M0+N7FGYEEMwT2yAGJ3x9J5CMUXPXYNeg+sfdnLIcfiPbokrl0o2dv9 fe5yD4Qxaq/aDIyqTLgqUzI0IyJGuNd8ngHNTiD4PK4GiSJ1V4Y5+socHld+UgNggBhVlnoaU9a pbdTNhMh9h0d8n7VcDHC7d7WH8V5M2+UJoDxkrgCwuH6pRhJf0PpITeT6t+A+/nbC1dPVqmWVWe kQ1lJJwuF1p94EzU
X-Received: by 2002:a2e:a991:0:b0:387:170:73f2 with SMTP id 38308e7fff4ca-3872379e3c4mr543991fa.4.1770919681957; Thu, 12 Feb 2026 10:08:01 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <b1256b3f-794b-40e8-a7e8-d1395fa7aa0d@iotconsultancy.nl> <EE144B22-21ED-46E8-8963-3D5639F377E9@tzi.org> <CABCOCHSzgtHZ3YpEwCrCtXBTFjusidzP3aCDbeJySM36toFoeA@mail.gmail.com> <6E107270-5943-4615-A221-24FC6A66D914@tzi.org> <CABCOCHR32FgW_y54KTomJcD+kaFn_yqupr1-zCJJyHsPEoxX5g@mail.gmail.com> <CABONVQZTqmiGPW3WdEABPeLCwiJXoXxnWZqEo2zVVt0wLto-6g@mail.gmail.com> <CABCOCHR7NyT3BYqp7AWhKx30dYgLDc9bTPRMCDxYtgWBTw37_A@mail.gmail.com> <CABONVQYyuVaeUYiF2jVQP+WecntE3pdZ=S_9h3D=3OKmOaZYFg@mail.gmail.com> <CABCOCHSohiqD3knXA4BGbBRUz=QYS+JmfZy+KTfu_gwXs1x_ug@mail.gmail.com> <3A8390F8-C788-4174-A7E2-2872694AAD41@tzi.org> <CABCOCHQyU+a0EFK-Bfj2V5OpqaOYAAm4MAAtTyJpmXkgzEDuAQ@mail.gmail.com> <1520919.1770460646@dyas> <7C586095-1A0E-4F99-B7FD-6AB1FD822DB6@tzi.org> <CABCOCHQR_9aTwy_f5Zn1k-uzMo5TuLiWt++guLY=NyRDe+q0uA@mail.gmail.com> <2318163.1770897228@dyas> <CABCOCHSvwAckpT=xB80X-HgXaytomkThWif7uNhhOgAeFbKSXQ@mail.gmail.com> <c1789506-d7cc-4b38-bf37-db770b032c4d@iotconsultancy.nl>
In-Reply-To: <c1789506-d7cc-4b38-bf37-db770b032c4d@iotconsultancy.nl>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 12 Feb 2026 10:07:49 -0800
X-Gm-Features: AZwV_QhFz6EXaBSyyeBl4Rf1JrB6R4GNavJlf3dtJELGri-7qVlm99LD3IJsaUc
Message-ID: <CABCOCHSwAzxvQQNo=JOMW4m2BtXM6-p=NSrqR79hceMke9zDaQ@mail.gmail.com>
To: Esko Dijk <esko.dijk@iotconsultancy.nl>
Content-Type: multipart/alternative; boundary="00000000000091abd1064aa45eb0"
Message-ID-Hash: DJP6O3EEGGC3OKURJCXEDUXVWHZV3LR6
X-Message-ID-Hash: DJP6O3EEGGC3OKURJCXEDUXVWHZV3LR6
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: Michael Richardson <mcr+ietf@sandelman.ca>, Carsten Bormann <cabo@tzi.org>, 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/MdNLaoJuQdS58hsxPi1_EotTzT4>
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 Thu, Feb 12, 2026 at 7:57 AM Esko Dijk <esko.dijk@iotconsultancy.nl>
wrote:

>
> On 2/12/26 16:33, Andy Bierman wrote:
>
>
> On Thu, Feb 12, 2026 at 3:53 AM Michael Richardson <mcr+ietf@sandelman.ca>
> wrote:
>
>>
>> A reason why I think we need a bit more than just an errata is because I
>> don't really understand the CORECONF use cases that would require
>> SIDs/NIDs
>> for choice nodes.  That's likely because I haven't written an
>> orchestrator.
>>
>>
> I don't know if there any use cases for CORECONF.
>
>
> Prior to the CoRE interim call, we talked I think about situations where a
> client would like to query for / filter on all items that exist in a
> sub-branch of the 'schema tree', with reference to e.g. a choice or case
> node. I haven't seen a practical example of this yet.
>
> Something that the non-constrained protocols do allow in certain
> situations. Whether CORECONF has a practical use case for it, and whether
> the constrained device would be able to parse such a complex request, I
> don't know. Maybe its CORECONF server can just send 5.00 and be rid of it
> :-)
>
> In the interim call it was mentioned that such use cases are still
> possible,  using the full string to encode the query/filter. So, a SID as a
> shorthand name would not be available for this use case because it's not
> assigned to case/choice nodes.
> What we aim for is that for a vast majority of constrained use cases the
> message sizes are nice and small; and SID deltas stay small for the vast
> majority of use cases.
>
>
>
> Either the example that shows no choice/case nodes is wrong, or the text
> that says
> every schema item has an entry is wrong.
>
> The CoRE interim plan is to adapt the text to what was intended and shown
> in the example (Appendix A of 9595).
> There was some discussions whether errata are sufficient, or whether a new
> draft is needed. (Current assumption is errata - we try that first.)
>


OK -- this is a big change to the code since the 'old' SID files are not
compatible with 'new' tools.

IMO, this is a trade-off that favors the intended use case.
All the schema items supported in RFC 9595 are used in existing management
protocols.
The choice and case nodes are not present in any XML or JSON
representations used
in NETCONF or RESTCONF.  (Except maybe proprietary filters).

The NETCONF WG is adopting a draft to use it in RESTCONF.
There is also UDP-Notif, which supports XML, JSON, and CBOR for
notification messages only.
The SID file format needs to be stable to support these standard protocols.



> Esko
>


Andy