Re: [netmod] iana-if-type.yang has multiple revisions with the same date

Andy Bierman <andy@yumaworks.com> Thu, 03 March 2022 16:56 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D41333A0BAD for <netmod@ietfa.amsl.com>; Thu, 3 Mar 2022 08:56:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20210112.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CgI_FHSFq_uf for <netmod@ietfa.amsl.com>; Thu, 3 Mar 2022 08:56:18 -0800 (PST)
Received: from mail-yw1-x1131.google.com (mail-yw1-x1131.google.com [IPv6:2607:f8b0:4864:20::1131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14C423A0E52 for <netmod@ietf.org>; Thu, 3 Mar 2022 08:56:17 -0800 (PST)
Received: by mail-yw1-x1131.google.com with SMTP id 00721157ae682-2db2add4516so63116887b3.1 for <netmod@ietf.org>; Thu, 03 Mar 2022 08:56:17 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KwpXw2r0sps8RQ2fM7CNY1xDW5NRWReQhoamH0qUTC8=; b=DW/mWDg/gWj/pet/fMG01P661Rx1W207pYAVGwSWHaRoTxOFTgC9/MFM/IGXM1d65H LBz+BeNE7M1DrCXH1QrAbolImyZrdGSyKCR6q7T/rk/D6aFniNWBtqQVPdO4zGmVEPIb 4BvqCuMSFRWBk0Qq9EWQQu+nRYdAFswvuRV8OD40iWT6n9cM76xPMr9yzStLSwfIXtQc re09lxTgitvzWRwlUkGZa69K9WLR32A70gssU4Xy6cgjEFtLqqFZjTJ9ZP4O695qYZWL xIMyexmVxfrYEYfl0B/T7AFZMR6CS9MRExNKpsGbyUcgvNfNOjW+nXrJehE/b8Gd52ce nAlg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KwpXw2r0sps8RQ2fM7CNY1xDW5NRWReQhoamH0qUTC8=; b=cIRZOQWI6ueyRQCoZst/FkxhcMl9lQyX1IRDbkD4HRCGUgM5rZSM22OzSyBBnIjoIH miEbRQlJHWMpBigKhJ7hge/95sQxUjEx9ipGxfNFSDzf/++EjVftxf0TduBKf9t++ie2 Xt0Jpl+iM0ZIelg7X6P0cK8hPEq2Fz1UE8L9LIuFDfjTKwQx5Hu39bav2qQ4dnzFW1Mq Jp5aAec5p9PvbsE6fnJKkI7lR3wgNuuETLDgb+8QeJV0oazNdMfKX2fy7n3hdNRmD5yF AgXl95CKclksd8m3ms9gaiDx7UgxH2hMBnDr6XpAcy/VrPcbJy0p5fOxBmGCYBvLVoz0 EBUQ==
X-Gm-Message-State: AOAM530aRDjAcJ3XEaKnSu2zBN36NFUj2Jw2Xba7Ot/0hKHXsDPxvLcD qe/b7VCsU586mEPRr+qKayqc8KvJx9C2LQvV89b5Kx7889k=
X-Google-Smtp-Source: ABdhPJwox+l/OjjlSHaAWsKZHOxwlwigLHHeG5SaEbVcsGeduQD5G2h2zcVbCUcCMjNiLEGy5v7Bg0sIy53Q2IkOJa4=
X-Received: by 2002:a81:7189:0:b0:2dc:53e2:88bb with SMTP id m131-20020a817189000000b002dc53e288bbmr1383583ywc.110.1646326576657; Thu, 03 Mar 2022 08:56:16 -0800 (PST)
MIME-Version: 1.0
References: <CAEe_xxiTdvGscUqhuC=Kuh70C-=MRnA8GgjupC2vBfkK6_p+kw@mail.gmail.com> <CABCOCHR+yKwL7kkV2_Teha-Vnc8AJ9Q8QhZyjYwjaj286=vR_g@mail.gmail.com> <CAEe_xxgF+qtQ_9Yzm5q5k2rnubt_gOj9BOEnRsYeJXnyAxXoZw@mail.gmail.com>
In-Reply-To: <CAEe_xxgF+qtQ_9Yzm5q5k2rnubt_gOj9BOEnRsYeJXnyAxXoZw@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 03 Mar 2022 08:56:05 -0800
Message-ID: <CABCOCHRRXDTEwWXTv9USFc5yw99DG_Oktk4iChsvzDsSAQeBBA@mail.gmail.com>
To: William Lupton <wlupton@broadband-forum.org>
Cc: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c9467905d95346a1"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/nLr_53KC2Kddko9L7lp824r509k>
Subject: Re: [netmod] iana-if-type.yang has multiple revisions with the same date
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Mar 2022 16:56:23 -0000

On Thu, Mar 3, 2022 at 1:25 AM William Lupton <wlupton@broadband-forum.org>
wrote:

> Thanks Andy. What is the next step? Should I (or someone else) email
> iana@iana.org, or can we assume that the relevant IANA person will
> already have seen this discussion?
>
>
It seems that RFC 8407 already says what to do (use a different
revision-date).
We combine the revision-stmt so there is only 1 revision entry instead of 2.

It is too late to do anything about this module.

I am interested in the OPS issues:
The client MUST be able to produce the same[*] schema tree as the server
in order to have an accurate model of the server's YANG API.

 1) server uses implementation-specific mechanisms (e.g. search path)
     to select the modules it will advertise in its yang-library
 2) client reads the yang-library, which provides all the [name,date] tuples
     and other info needed
 3a) client can use cached yang-library data and locally obtained YANG files
 3b) client can use <get-schema> (IFF supported by the server) to retrieve
the YANG files

[*] same can mean a later revision if specific schema definitions have not
changed

Issues:

1) Is there ANY uniqueness guarantee that [name, date] is GLOBALLY unique.
A: Yes according to RFC 7950, but not really in implementations.
A: No, if revision-label is added and the same revision-date is used in
multiple release trains.

So if a client cannot rely on [name, date] uniqueness, then it does not
really know if
step 3a or step 3b is required.

This is currently a solved problem using proprietary means
(e.g., client hacked to know which one, based on server testing).

But now there are more system components, not just a server,
such as YANG Data Instance Files and YANG SID Files.
If the [name, date] tuples are not globally unique here,
then these standards do not work.


Andy







> On Tue, 1 Mar 2022 at 14:49, Andy Bierman <andy@yumaworks.com> wrote:
>
>>
>> I think that this should be fixed. What's the best way to achieve this?
>>>
>>
>> I think this issue should be resolved as well.
>>
>