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

Andy Bierman <andy@yumaworks.com> Thu, 05 February 2026 15:59 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 D1C19B258ADA for <yang-tooling@mail2.ietf.org>; Thu, 5 Feb 2026 07:59:50 -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 icNDgmpVAbIk for <yang-tooling@mail2.ietf.org>; Thu, 5 Feb 2026 07:59:50 -0800 (PST)
Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (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 39339B258AC7 for <yang-tooling@ietf.org>; Thu, 5 Feb 2026 07:59:50 -0800 (PST)
Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-59de2ad4af8so136631e87.3 for <yang-tooling@ietf.org>; Thu, 05 Feb 2026 07:59:50 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; t=1770307189; cv=none; d=google.com; s=arc-20240605; b=F7qieAkcJJjQmcMdGYi9p5JEND3tonVBWi+1VMJoT9HX+qDhRPvLhuthmAkUpnMZcM C1UU9Qsaz2X5Aebw1H6NQw4iqABJrh68PUM+2WmjBKzAYSrSK4S52pK4J75K/WSYi8KG jSb0rPS4OstXcO1SgHL/g2f/DWN9IYLM3Uesd7eF0m5GQoUYK9KcTVfcOA92VcIv59DX MoEBg1Bb9Sg6esG8t8LwE8CvQGIEhsIZxcqVmICbO4WcrkMoXf2ro52S7A3+f2z+XjDf lPt36Kw5mHw0ISF/hPF5g4W8guQ4oadtvseeLMMMXHJwJ1lNKlquemha7GT+W1FUTH3c LSXg==
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=sHMwVXfFXvzMb1tGxmcps88P5HzuLWTtLIL+Ak15LQo=; fh=FsCMOcduzKMTgpW7BLvK7ha2PVUduJnr4kjomKrkJtw=; b=LttC054n3ID6T0EJDwjZ7zzV7ux/UDfmeRq0D/rP3NzfBfHc6JldKefqRG9WBVbEbP VlEu8OkQV/2jVTkBWd4IxcZz6XjKJv9220/gl7u7whzujUtMw6VuHBGma2cNdK2G3mzW qHWrhj2xsWzPpCIhjgdn1tMHbcoYVZRW4G34ck84K37fTfo5CSER5Xn0mGf/UNQBGvTq uKa81jIbzLwXVwNroOwgMvAHZ+U5CAzWXDgw9UAgmrSsNYnReV1mp1kaFbIUCyycVIvD 805R8582XTxCqn4EgLvnfGDiAzW9TI6YRG4ipY7N06jnftSE7GLWgq/iGzP0cX2WbMJq 0LNg==; 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=1770307189; x=1770911989; 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=sHMwVXfFXvzMb1tGxmcps88P5HzuLWTtLIL+Ak15LQo=; b=F6LfsdgfHQ0/JAmHeTVVMR5mFCvLOTB/6iUBckaamG+MUwuSLYTfrgFP2OUs0dq8f7 U2lon0H4hXKB0Q+0oswIWAbOV21yKn9s45M5CIm4aVE6EhE/2QOai6So1t3InOMUEkGm wS2HtAmuXx7ZSK2pUzpYfzCXI+KeMd3sh/GLgBmTiiLvFXTYwm2rs2wE8yWk9ScDBPaB cthnQMW7UkHaaZAgiTP2WFykPzx/8W7LLzjPcp3jYq3ORan6gLI/L+gr4iE2t65TJhfl VaJ6qkgnCXTndlCLU+W869eal0yX2aUQmSuE9s852+Zx9Tl/THVFaJQwqSU+OdpuV2x1 vYpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770307189; x=1770911989; 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=sHMwVXfFXvzMb1tGxmcps88P5HzuLWTtLIL+Ak15LQo=; b=iO/i/2q/c73bGsavQ95/pJupAO+axMilMwhZOn5ZbVJwWCGX+Ts2OAIAYHhrkt0hZL bE58AO7F3NvirMI/ZXl6CSz8icI+XaOH0ypvYjVzqOdrd3VA2TcaCDtBME2Pgx3l5nMP px281acTaF3H4IzzViS1fZDlLMU5EbtsCvzf3nS2+vsgowS2RZOpa98UUpqzJ1+d6HCZ 020jEC2kbN8AaWLeOU3NaDDySW0MDsN3h+mhIjdlLv2k+gKYc70TMDPaoNjHm+dFV7rE KQYj+iY2gYhkYt1u2Tjw7NtEataTzbmQA5nJ9wiXbnmoKmRbFlfCM9vnAQ/mg07SUQ2O Y+lw==
X-Forwarded-Encrypted: i=1; AJvYcCW5TtvI9OMSVq8fxff6Rj8zudbKlLFW5txprtGrf8jce0z6pHSWT/EF8A3C3yFz818oNd123sToOLJ8aGQ=@ietf.org
X-Gm-Message-State: AOJu0Yw/vJZa4CS1LrxoRo2ASJ7ByN1p5wOvJNSvXs3ActjmhgXzbRGE wHEb5BNcJyA8uLEPk1x+QGyU7QFh1LwU9cyNpwYPpFxMDryiG31v7id3CtJQCPIYtO/l3/WZ0lB 8i5JfV2qFTcAXcGnR6Aa0iW9o4I0nyVa0wgn1rNDX4g5xUtRQ+UzOwfeHDQ==
X-Gm-Gg: AZuq6aJujZyu82GMlFBnPC3nAzNFtpdyVlKB6jgOTieBtsSMQN4XthseupMYymwrLtY Yu9Xa4KFkoH/NKP5WxnngjLr55UoICJBHogwWVepHm6JHJAOshamDuvs1tIL40II0JEtNRGiaZE OTS4jJneWeWHx3R8BlOg2/i30bgmdpnD7+Wup34G9U7s9JP/gboXxdtSmDE+4hO17sdsWQOY8ql kY3wYzp4+oV7bL/L94WZBroqm5B/5p4LEC+cU9Wpe2OtPFX1MExzcI8rm6sBCgPckFn0Eiw7VJM 2Bs4MvcGt5RdMLKwIJ3/X9Xr3q7E
X-Received: by 2002:a2e:be8c:0:b0:382:fd3d:b679 with SMTP id 38308e7fff4ca-38691d4fe11mr16349931fa.4.1770307188844; Thu, 05 Feb 2026 07:59:48 -0800 (PST)
MIME-Version: 1.0
References: <CABCOCHTP52cfDVeguY3iYbzJqmCfg-z5cMeFz-y_3vNw250TEg@mail.gmail.com> <1263365.1770129015@dyas> <CABCOCHRHAEkiAJu=TtaZDERG9eiq_Ay9txRt10DEOgPYu3eprA@mail.gmail.com> <6c4f3e7e-ffa3-404b-83b3-9533f4046212@iotconsultancy.nl> <CABCOCHTWV2amW1wdHPQyd5jeaAVeie1S2xFfFf2ZgZQ6EbCKqg@mail.gmail.com> <4c11110f-fe64-414f-ad78-0183c61851b8@iotconsultancy.nl> <DDC68541-9A77-4AFD-BF36-DF6A75CF888B@tzi.org> <ce89bf21-8806-4590-9f37-a1eefa44b979@iotconsultancy.nl> <408BA8A1-AD8E-4CED-9991-B4632577986E@tzi.org> <7aca3e8e-ac46-4bb5-8b16-f75b51490b55@iotconsultancy.nl> <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> <81BE63E4-AB15-4298-8A63-94726BD7F024@tzi.org>
In-Reply-To: <81BE63E4-AB15-4298-8A63-94726BD7F024@tzi.org>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 05 Feb 2026 07:59:37 -0800
X-Gm-Features: AZwV_QjWFgLSVKF6kzb1uOsFcC92U0ZYr3hxb2HxWoBGZbRs9_IlqqXzcQq1BRI
Message-ID: <CABCOCHTC-VTk5gBY7O95Au8eUF84pgVA2q4z7d8kY8N4hsFVtw@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="00000000000022a380064a15c336"
Message-ID-Hash: SFC644D7LXDWXCTI5DW3FUVAHNCPW35S
X-Message-ID-Hash: SFC644D7LXDWXCTI5DW3FUVAHNCPW35S
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: Esko Dijk <esko.dijk=40iotconsultancy.nl@dmarc.ietf.org>, yang-tooling@ietf.org, Michael Richardson <mcr+ietf@sandelman.ca>
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/zL2FjFx_8kiv0Ka_SDlIjjWrRcQ>
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 5, 2026 at 7:27 AM Carsten Bormann <cabo@tzi.org> wrote:

> On Feb 5, 2026, at 16:23, Andy Bierman <andy@yumaworks.com> wrote:
> >
> > Using strings means only the local-name (or modname:local-name) is used
> in the identifier.
> > This has the same property as XML and JSON (identifier is only
> meaningful within a parent node).
>
> Since the parent node is not necessarily identified, the name actually
> does include the (global) module name; this can only be elided for a name
> path component if it is the same as a preceding name path component.
> I’m not sure I fully understand what a local name is (a name involving a
> module prefix?  These aren’t used in YANG-CBOR).
>
>
The term is used in XML.  The name format uses 'node-identifier' from RFC
7950
except prefix is really module-name.


   absolute-schema-nodeid = 1*("/" node-identifier)

   node-identifier     = [prefix ":"] identifier

Does anybody implement the first 2 forms of the media-type?

application/yang-data+cbor; id=sid
application/yang-data+cbor; id=name

We only implement application/yang-data+cbor.
If a schema node has a SID assigned then send it, otherwise send the name.
If a SID is received, look it up, otherwise expect a name and find the
child of the current parent.

If the sender uses id-sid and sends a name, is the receiver supposed to
reject the message as not valid?


Andy




> Grüße, Carsten
>
>