Hi,
I did look into the details of YANG and SID generation and found that
the standard Pyang 2.7.1 tool (no mods) assigns SID 2451 to the
sx:structure called "voucher", not to the container "voucher" that we
define.
Then I realized that we don't need the container anymore, because
sx:structure already offers a default container as explained in RFC 8791
- Section 2 mostly.
So to remain wire-compatible (JSON/CBOR) with older RFC 8366 vouchers,
the "container voucher" that we still insert would need to be removed.
And also wire-compatible with our own examples!
Created an issue for this: https://github.com/anima-wg/voucher/issues/91
This resolves at least some of the mystery of SID allocations and
"double hierarchy".
Esko
On 26-11-2025 02:40, Michael Richardson wrote:
Toerless Eckert<[email protected]> wrote:
> Just installed pyang (probably not even newest, and it did create me
> ietf-voucher-tree-latest.txt as follows:
Yes.
But, did you do sid generation?
It (2.7.1 is needed, plus some patches from cabo's repo) wants to create SIDs
for:
> +-- (pinning)?
> | +--:(pinned-domain-cert)
> | | +-- pinned-domain-cert? binary
All *three* of these things.
If we were to add/remove the choice structure, then the leaves get renumbered.
RFC9254 does not say anything about assigning SIDS to the choice, and
creating foo/foo leaves.
> Which i guess looks correct at least to the indentation issue of those
> components.
> Maybe there is something wrong with the build setup in the directly so
> that pyang is not correctly run ?
Could be, but I think KISS applies here.
While the choice expresses our thoughts better, it is getting in the way of
being done, and not really contributing very much to our process.
--
Michael Richardson<[email protected]> . o O ( IPv6 IøT consulting )
Sandelman Software Works Inc, Ottawa and Worldwide
_______________________________________________
Anima mailing list [email protected]
To unsubscribe send an email [email protected]
--
*IoTconsultancy.nl* | Email/Teams: [email protected] | +31 6
2385 8339
_______________________________________________
Anima mailing list -- [email protected]
To unsubscribe send an email to [email protected]