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

William Lupton <wlupton@broadband-forum.org> Wed, 25 May 2022 08:52 UTC

Return-Path: <wlupton@broadband-forum.org>
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 479F9C14F6F8 for <netmod@ietfa.amsl.com>; Wed, 25 May 2022 01:52:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.896
X-Spam-Level:
X-Spam-Status: No, score=-6.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_HI=-5, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=broadband-forum-org.20210112.gappssmtp.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PxjZ7MFyIyd6 for <netmod@ietfa.amsl.com>; Wed, 25 May 2022 01:52:13 -0700 (PDT)
Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDB40C14F612 for <netmod@ietf.org>; Wed, 25 May 2022 01:52:08 -0700 (PDT)
Received: by mail-yb1-xb31.google.com with SMTP id i11so35103731ybq.9 for <netmod@ietf.org>; Wed, 25 May 2022 01:52:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadband-forum-org.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Y831hVbMyo7k5TPTtJBNEN4SFThoSZrUsUGZkuP8sxk=; b=b4jbdD+wagxEQE/XjNwsdvSF5Tss3jEnv2VGn/mRLBH7NHzW03oD0F9z+bziiraTPR 3a5eeh3rDmuD/x4F/84T60xk+73ZfPOyZiObPDaR9vhbU4zS1diNv08TNy+n/agOLvDi G8X9uNiKEOl/LdZ8I/buSNJkgTFT0C0sgHSEx+ff01UKDyZBtfWe7DmS+UAcdTEoghPK 1hm6ZbVyrpK6WnmwyUkR97yRWjSn6w39FJB1Zgz11ZIzhh0SNNEfR1fqyT6MqhA+d3td OrH9aN9BW1EUrx7onxtSc87k3jiqnRGPBl5i4Hmgbx8sVun3jaOP/qvQgdNZKEkNjttc 3Dig==
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; bh=Y831hVbMyo7k5TPTtJBNEN4SFThoSZrUsUGZkuP8sxk=; b=p/CSJ8q6PN9hKSdzbJNtKbQRmiPFElNAVIyVtissbYqAlDv1b5zi1/rTaP4VttXGZ4 RflvGQhZGBSAyz8pR9aHx46C6Lv9lO8WSps43XgnU0hbSxDWPYku3Zdzh6ONZeUhGBNH IPw4VwFcv4ATFFD9YUMJJtTts7/VbIJofn4Sf8VeEAiqupJr4NKkoC4zoYTICL3gXymy yxPXXu1jU0/z0PvVJAcOrCefRE9a2pJpxF9a7JFGMjLK1huL0WrqRzce/uVBhYM7c9Bb eC4z+AnPznjgE1pFZ/cRI37M0rRJKW7pzJbS1IB1zsE4ajaxOSJ6sOOigKZbHGwjqNYi hjtQ==
X-Gm-Message-State: AOAM5331G8jTQJiVs3Nqwf07wOTWZvNWVZxM1JBO16tMhuNCo3kpJXMQ c5DKrjrrhDpmnQk2vSi0BAVDn95L7X5UfbNhber/jwnxgcT1Lw==
X-Google-Smtp-Source: ABdhPJxXbZDRXy+XUEKULsaFBuRmbMdjnDRYxFY1B9fO/AYa6STw8PX1I3weSC6+qX9mejl+2z1cnLCjK7LS2d2O9vs=
X-Received: by 2002:a5b:302:0:b0:64b:a20a:fcd9 with SMTP id j2-20020a5b0302000000b0064ba20afcd9mr29184386ybp.492.1653468727493; Wed, 25 May 2022 01:52:07 -0700 (PDT)
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> <CABCOCHRRXDTEwWXTv9USFc5yw99DG_Oktk4iChsvzDsSAQeBBA@mail.gmail.com> <CAEe_xxjZpt0JVgiE5o2fw=OVwohveF-Yz3Cb3LVg3bHReOEUtQ@mail.gmail.com> <20220303190008.25d3xantvohwlyia@anna> <622115de.1c69fb81.409a8.d5c6SMTPIN_ADDED_BROKEN@mx.google.com> <CAEe_xxjykDv+PSG8bc+ZbNqwqg-auNTGn+j4_t-xg64o2TsC9w@mail.gmail.com> <BY5PR11MB41960F77BD40D20AEC314106B5059@BY5PR11MB4196.namprd11.prod.outlook.com> <BY5PR11MB4196C84A6994A2469808D599B5099@BY5PR11MB4196.namprd11.prod.outlook.com>
In-Reply-To: <BY5PR11MB4196C84A6994A2469808D599B5099@BY5PR11MB4196.namprd11.prod.outlook.com>
From: William Lupton <wlupton@broadband-forum.org>
Date: Wed, 25 May 2022 09:51:56 +0100
Message-ID: <CAEe_xxhy0SRHJpgT4UXBLgoC95=u6mGgOoXm=fVn7JPsvasbZA@mail.gmail.com>
To: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000265a0005dfd230a6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/TaPJepAQ3Qd0PYKQb3YIiVSDqsc>
Subject: Re: [netmod] iana-if-type.yang has multiple revisions with the same date
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.34
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: Wed, 25 May 2022 08:52:18 -0000

I uploaded some more modules to the catalog yesterday and was looking into
why compilations are failing.

It turns out that iana-if-type@2022-03-07.yang (the 'fixed' version) is
broken. Running it through pyang gives this:

% pyang iana-if-type@2022-03-07.yang
iana-if-type@2022-03-07.yang:56: error: unterminated statement definition
for keyword "description", looking at C

The problem is a bit earlier, in the coalesced revision statement:

  revision 2022-03-07 {
    description
      "Coalesced revision history entries for 2018-06-28.”;
  }

That closing quote is a 'close curly double quote' (UTF-8 Encoding: 0xE2
0x80 0x9D). Fixing it to an ASCII double quote fixes the problem. Is there
no automatic validation of IANA modules?

% grep Coalesced iana-if-type@2022-03-07.yang | od -ax
0000000   sp  sp  sp  sp  sp  sp   "   C   o   a   l   e   s   c   e   d
             2020    2020    2020    4322    616f    656c    6373    6465
0000020   sp   r   e   v   i   s   i   o   n  sp   h   i   s   t   o   r
             7220    7665    7369    6f69    206e    6968    7473    726f
0000040    y  sp   e   n   t   r   i   e   s  sp   f   o   r  sp   2   0
             2079    6e65    7274    6569    2073    6f66    2072    3032
0000060    1   8   -   0   6   -   2   8   .   *?  80  9d*   ;  nl
             3831    302d    2d36    3832    *e2*2e    *9d80*    0a3b

0000076

On Tue, 8 Mar 2022 at 13:07, Rob Wilton (rwilton) <rwilton@cisco.com> wrote:

> Hi William,
>
>
>
> IANA have published a new revision with the revision history fixed.
>
>
>
> iana-if-type YANG Module
> <https://www.iana.org/assignments/iana-if-type/iana-if-type.xhtml>
>
>
>
> Regards,
>
> Rob
>
>
>
>
>
> *From:* netmod <netmod-bounces@ietf.org> *On Behalf Of *Rob Wilton
> (rwilton)
> *Sent:* 04 March 2022 14:37
> *To:* William Lupton <wlupton@broadband-forum.org>; Benoit Claise <
> benoit.claise@huawei.com>
> *Cc:* NetMod WG <netmod@ietf.org>
> *Subject:* Re: [netmod] iana-if-type.yang has multiple revisions with the
> same date
>
>
>
> Hi William,
>
>
>
> I have asked Sabrina in IANA to please publish a new revision with the
> history fixed.
>
>
>
> Regards,
>
> Rob
>
>
>
>
>
> *From:* netmod <netmod-bounces@ietf.org> *On Behalf Of *William Lupton
> *Sent:* 04 March 2022 10:15
> *To:* Benoit Claise <benoit.claise@huawei.com>
> *Cc:* NetMod WG <netmod@ietf.org>
> *Subject:* Re: [netmod] iana-if-type.yang has multiple revisions with the
> same date
>
>
>
> +1 (not surprisingly). What action? And whose action?
>
>
>
> On Thu, 3 Mar 2022 at 19:24, Benoit Claise <benoit.claise@huawei.com>
> wrote:
>
> +1  to Jürgen point of view.
>
>
>
> Regards, Benoit
>
> *From:*Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
>
> *To:*William Lupton <wlupton@broadband-forum.org>
>
> *Cc:*NetMod WG <netmod@ietf.org>
>
> *Date:*2022-03-03 20:01:06
>
> *Subject:*Re: [netmod] iana-if-type.yang has multiple revisions with the
> same date
>
>
>
> The obvious thing to do in this particular case (where there are only
> allocations of new values) is to collapse the revisions and to move
> on. Slightly better would be to ensure this does not happen again.
>
> /js
>
> On Thu, Mar 03, 2022 at 05:45:25PM +0000, William Lupton wrote:
> > > It is too late to do anything about this module.
> >
> > This module is republished every time a new ifType is added. Are you
> saying
> > that it would be unacceptable to collapse the duplicate revisions next
> time
> > it's updated? If so then we will live with this FOR EVER!
> >
> > >
>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
>
>
> --
> Jürgen Schönwälder              Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>
>