[Anima] Re: removing choice code from RFC8366bis -- Re: Review of draft-ietf-anima-rfc8366bis-17
Esko Dijk <esko.dijk@iotconsultancy.nl> Wed, 26 November 2025 13:31 UTC
Return-Path: <esko.dijk@iotconsultancy.nl>
X-Original-To: anima@mail2.ietf.org
Delivered-To: anima@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id A21AD910B294 for <anima@mail2.ietf.org>; Wed, 26 Nov 2025 05:31:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 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_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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=iotconsultancy.nl
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 lqCJ6BvEdtRK for <anima@mail2.ietf.org>; Wed, 26 Nov 2025 05:31:28 -0800 (PST)
Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.146]) (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 85820910B28D for <anima@ietf.org>; Wed, 26 Nov 2025 05:31:28 -0800 (PST)
Received: from smtp.soverin.net (c04cst-smtp-sov01.int.sover.in [10.10.4.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4dGgSS6wmjz1T; Wed, 26 Nov 2025 13:31:20 +0000 (UTC)
Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4dGgSS50r5z8x; Wed, 26 Nov 2025 13:31:20 +0000 (UTC)
Authentication-Results: smtp.soverin.net; dkim=pass (2048-bit key; unprotected) header.d=iotconsultancy.nl header.i=@iotconsultancy.nl header.a=rsa-sha256 header.s=soverin1 header.b=dD0nA4wx; dkim-atps=neutral
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancy.nl; s=soverin1; t=1764163880; 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: in-reply-to:in-reply-to:references:references; bh=DheHpHSoJTwB1CgF4FaH8bW4CGXFiopP8DafE/CJ7HY=; b=dD0nA4wxQZwxAIi5W46U4PLzNUfiA/nqyXzYPG9YeaxXqA5oZZp2iXpS9c2TaFg2Kv6yU0 0BYWYNRjKCikKFULE3quAI5Dcyre0AnF0ETR3CGjCNsJhY6fkYTnAJjzuevJELU7TqQiVb 7p/s+bTblghjaEDQjC7RPY6JJBr1OqeC8dYOlFYgM4ftOapZ0zSLn3Q3elNNRl7CEjI+9U vaV/6YKWFOilLcrMfrW9/65VwGskSF8A+sbgOdc6PrfNNpgP6eknuyu2/mdH3KNouD3+fD V9TYQP8l+eOqNFsnbax4lTajBfezoXzvDc5HumKSgiaHpdNb+A4RS6Z18RMJSA==
X-CM-Analysis: v=2.4 cv=d/oPyQjE c=1 sm=1 tr=0 ts=69270128 a=tr9c1FAsEEy4c3bgXXlCYw==:117 a=l70xHGcnAAAA:8 a=lTrhJCJeAAAA:8 a=48vgC7mUAAAA:8 a=Tm8AgIzx7Jyw2FiMQ1kA:9 a=QEXdDO2ut3YA:10 a=oDYp5WszBiuMB5sZozMA:9 a=J5jIo-255eRKlERi:21 a=_W_S_7VecoQA:10 a=lqcHg5cX4UMA:10 a=JtN_ecm89k2WOvw5-HMO:22 a=msQidb1V7qGuAPALg0EV:22
X-CM-Envelope: MS4xfPHv4htviRf1p1OtBQPzb0bqOMhT8jUlrVj1xLe7RWbOTZVWIgJqoWVm40M/knRD+q4BqiynX0sDn6loy4BtTmF0SA+9vzM9E4VlPtwAwBlxoUqKaP1U ebyXjAzEKBTNFBpCppqJbhPiQqEJy2Py28jXKcylLd1X162/BU0UlfznZ06JJ50G5r7fOATA5r9peKOMyJIzszw4fojLPWIfyRx7yhYtehHnfBOyQdAPtOSc
X-Soverin-Id: 019ac05c-8440-7690-ae45-f70bf40b3fd4
Mime-Version: 1.0
Date: Wed, 26 Nov 2025 13:31:20 +0000
Content-Type: multipart/alternative; boundary="----=_Part_469_450108651.1764163880"
Message-ID: <44e9a848d4fc9aca25ac818727550c9e@my.soverin.net>
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: Michael Richardson <mcr+ietf@sandelman.ca>
In-Reply-To: <25597.1764086935@obiwan.sandelman.ca>
References: <19ddedf3-7a8d-43e7-9941-4933c4ed0570@iotconsultancy.nl> <25597.1764086935@obiwan.sandelman.ca>
X-Priority: 3 (Normal)
X-Spampanel-Class: ham
Message-ID-Hash: JZJ4TBPLHGXEUFENVB6DSQC54DOHT77S
X-Message-ID-Hash: JZJ4TBPLHGXEUFENVB6DSQC54DOHT77S
X-MailFrom: esko.dijk@iotconsultancy.nl
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-anima.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "anima@ietf.org" <anima@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Anima] Re: removing choice code from RFC8366bis -- Re: Review of draft-ietf-anima-rfc8366bis-17
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/tI2ZpidcYJH_-XRVwMRNts3yV3w>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Owner: <mailto:anima-owner@ietf.org>
List-Post: <mailto:anima@ietf.org>
List-Subscribe: <mailto:anima-join@ietf.org>
List-Unsubscribe: <mailto:anima-leave@ietf.org>
Thanks! Ok to take 'choice' out, for me. This makes the attributes more straightforward to understand for readers of various backgrounds. You can now understand it as a "dictionary" of keys/values, some of which are optional. However the new text in -18 that's now trying to explain the issues with 'choice' / 'case' is not representing things correctly. See below: During development of this merged YANG module, advice was given to better organize mutually exclusive attributes such as pinned-domain-cert vs pinned-domain-pubk, or expires-on vs nonce. Unfortunately, [CORESID] does not explain how and why choice statements are assigned SID values, and the tooling as of the end of 2025 is inconsistent with both the document, and the intuitive notions as to how this should work. [CORESID] RFC 9595 in my view does specify clearly enough the any 'choice' and 'case' nodes are not assigned any SID values. See Section 1, "The following items are identified using SIDs", which includes data nodes in the list but not schema nodes (in general). So per RFC 7950 terminology, the 'choice' and 'case' fall outside the scope of SID allocation. Also I haven't seen the tooling (pyang) assign SIDs to 'choice' or 'case' ! And all this is compatible with my intuitive view - choice/case nodes don't need SIDs because these SIDs will be never used even if they would be allocated. Maybe the tooling gets confused by choice/case, however in Andy's mail in the CoRE WG he mentioned that pyang 2.7.1 does an incorrect ordering of items if the flag --sid-update-file is used. So not sure if that's influenced by use of choice/case. Esko On Tue, Nov 25, 2025 at 17:19, Michael Richardson <mcr+ietf@sandelman.ca> wrote: Thank you for looking; it's hard to see some of these things while in the middle. TL;DR> **I propose to take the choice stuff out of the YANG** Esko Dijk <esko.dijk@iotconsultancy.nl (mailto:esko.dijk@iotconsultancy.nl)> wrote: In Section 7.1, the last 3 elements fall outside of the structure "voucher". Why is this the case? Can we correct/unify this or is there a reason (in which case we'd need to explain). For me personally, the less unneeded hierarchy the better; but the prime goal should be consistency - i.e. leafs at the same level in the hierarchy - where possible. It took me a bit to understand the issue. I see now. Wow. Oops. The copy on my laptop does not have that problem. I must have fixed something. I'll do -18 with the fix. Or maybe the tree diagram generation was broken due to the sid issues.... YES. We've figured out that this is the result of the introduction of the "choice", which the YANG doctor told us to do. To me, it's become a disaster. **I propose to take the choice stuff out** In Section 8.1, similar question. In Section 8.3, "expires-on" is present twice. This is not the case in 8.1, so it looks like 8.1/8.3 are not in sync? This is the SID problems that we've been fighting. I see other duplicates as well. Sigh. Would it better if the routine that truncates the long SID names just always kept just the last component? We use RFC 6125 as reference, though it's not very important I think. This RFC has been obsoleted. I think we should remove or change this reference. Not sure which reference is good? Yes, RFC6125's DNS-ID got replaced by RFC9525. The problem is that 9525 does not define the CN-ID check, which is part of what we reference. I've split that reference up into two pieces. I'm preparing a few editorial fixes in a single PR. One thing I found is that "Voucher Artifact" and "Voucher" and "Artifact" are all equal by the definitions in the Terminology section. It all refers to the Voucher Data plus the signature applied to it. Is that correct? (If so I'll add a cross-reference in the terms so it's easier for a reader to understand this.) Thank you for the editorial PR. -- ] Never tell me the odds! | ipv6 mesh networks [ ] Michael Richardson, Sandelman Software Works | IoT architect [ ] mcr@sandelman.ca (mailto:mcr@sandelman.ca) http://www.sandelman.ca/ (http://www.sandelman.ca/) | ruby on rails [ -- Michael Richardson <mcr+IETF@sandelman.ca (mailto:mcr+IETF@sandelman.ca)> . o O ( IPv6 IøT consulting ) Sandelman Software Works Inc, Ottawa and Worldwide _______________________________________________ Anima mailing list -- anima@ietf.org (mailto:anima@ietf.org) To unsubscribe send an email to anima-leave@ietf.org (mailto:anima-leave@ietf.org)
- [Anima] Review of draft-ietf-anima-rfc8366bis-17 Esko Dijk
- [Anima] Re: Review of draft-ietf-anima-rfc8366bis… Esko Dijk
- [Anima] removing choice code from RFC8366bis -- R… Michael Richardson
- [Anima] Re: removing choice code from RFC8366bis … Toerless Eckert
- [Anima] Re: removing choice code from RFC8366bis … Michael Richardson
- [Anima] Re: removing choice code from RFC8366bis … Esko Dijk
- [Anima] Re: removing choice code from RFC8366bis … Esko Dijk
- [Anima] Re: Review of draft-ietf-anima-rfc8366bis… Michael Richardson