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

William Lupton <wlupton@broadband-forum.org> Tue, 01 March 2022 12:54 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 05C083A08AD for <netmod@ietfa.amsl.com>; Tue, 1 Mar 2022 04:54:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.907
X-Spam-Level:
X-Spam-Status: No, score=-1.907 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, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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=broadband-forum-org.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 iTQjVqAx6lxi for <netmod@ietfa.amsl.com>; Tue, 1 Mar 2022 04:53:58 -0800 (PST)
Received: from mail-yw1-x1130.google.com (mail-yw1-x1130.google.com [IPv6:2607:f8b0:4864:20::1130]) (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 33A633A08A9 for <netmod@ietf.org>; Tue, 1 Mar 2022 04:53:58 -0800 (PST)
Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-2d6d0cb5da4so143148247b3.10 for <netmod@ietf.org>; Tue, 01 Mar 2022 04:53:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadband-forum-org.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=PotZaH5gChvCgxREUpg/pz2olmhDmujIV2GHfTeHDPk=; b=zWIv44dbeUVsu3vLnoaA5IMRuhyC6/+oMOPRmnPkUs31+/v4lwO8OTLmo6QdU5SwYa i3cCIDVqgijTQiurqynyypFybxP6GMjPerbqh2jY4b68FoLS3GySYSJCXqbIGI367iwH mn0XRlTq046bho4OWJTRD5gnc/aZbZSLifV1hkePKMHMJcN5fOTxF/UUdcvHB405EHzV z+fvAFrhTvgnZkv9aiYSyKYuszVYGefkdVX383JEtoksZL+7ntXjXq40Z88OFJvFeE1Z GkXt9zofIV7OlUgTJFu3sgPpgh454rYHP7sNsDb9txlU294z7HPDryv5MOqr9B5zpSSY DYaw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=PotZaH5gChvCgxREUpg/pz2olmhDmujIV2GHfTeHDPk=; b=Hsz9n5xLyOx0P5i5Lar0YYxqqEcmnBBqj2GXkb9C1pUHv8HEWFTcUIon6eDwtE/CdK t9nZ6EMFV9QJ0M7fLyACatjCLe4mhCpA3/BCvp1/ElXFq72tO6oNqpL//hjVHPzH/wrZ wAJ/OkV/QWSrUdSC/yWbTWqt9VSgkiDNn9CiRjyKG3r/lQIiew5Q75eU7++t/O8/cW0G l86HZrw7D0o51s52IiEPpQRJcd8G1sH5xQhXX73ghL8luePw8ZIP9PjGedPpCtSwKe6n j5a+81eyJi1ujVwsT1In/2zQl7CNwnNvbzPkVdG1RHgdBZVhmVf/GqozpDPK2KNfJUaY TFsw==
X-Gm-Message-State: AOAM533QuMMxqgvuZwo1Ceq1UwB8teu2AkWU8zPgACrR47Vbaj2fmqEJ ayKvljyjREFVx0Yq6VrqanOhJtZB0Ng6m11lw6J2/UI6bFo1SHfB
X-Google-Smtp-Source: ABdhPJzAs/yCLtyelnLTas4HPqXjxEUTt8EldX3U12MPv5KFy5Enb427cJNPHJnrCMOJBFNZuKHSUbtM4qw+hZl2LoM=
X-Received: by 2002:a81:a194:0:b0:2d0:ee56:ccdd with SMTP id y142-20020a81a194000000b002d0ee56ccddmr24934742ywg.135.1646139236307; Tue, 01 Mar 2022 04:53:56 -0800 (PST)
MIME-Version: 1.0
From: William Lupton <wlupton@broadband-forum.org>
Date: Tue, 01 Mar 2022 12:53:45 +0000
Message-ID: <CAEe_xxiTdvGscUqhuC=Kuh70C-=MRnA8GgjupC2vBfkK6_p+kw@mail.gmail.com>
To: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006eba9405d927a8d0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/7zrufLPj6qphmrAuNxUrIbXQ0xo>
Subject: [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: Tue, 01 Mar 2022 12:54:03 -0000

All,

Sorry if (as is quite likely) this is a duplicate.

I noticed from
https://yangcatalog.org/private-page/BBFYANGPageCompilation.html that
there's a (long-standing?) problem in iana-if-type.yang
<https://www.iana.org/assignments/yang-parameters/iana-if-type@2021-06-21.yang>:
it has multiple revision statements with the same date:

  revision 2018-06-28 {
    description
      "Registered ifType 294.";
  }

  revision 2018-06-28 {
    description
      "Registered ifType 293.";
  }

This has presumably happened as a result of an automated update script that
doesn't check for this case (*)? From a quick scan, I didn't see anything
in RFC 7950 banning duplicate revision dates, but RFC 8407 section 4.8 says
"*If the module contents have changed, then the revision date of that new
module version MUST be updated to a date later than that of the previous
version*" and of course yangdump-pro is checking this.

I think that this should be fixed. What's the best way to achieve this?

Thanks,
William

(*) In the rare event that multiple changes are made in the same day,
perhaps the second change should be (strictly wrongly) assigned to the
following day. In theory this could cause revision dates to run far into
the future but in practice I don't think this will happen :).