Re: [netmod] warn: Module's revisions are not unique (2018-06-28).

William Lupton <wlupton@broadband-forum.org> Wed, 17 March 2021 18:36 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 4016D3A1123 for <netmod@ietfa.amsl.com>; Wed, 17 Mar 2021 11:36:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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.20150623.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 luvINbAfXwNf for <netmod@ietfa.amsl.com>; Wed, 17 Mar 2021 11:36:46 -0700 (PDT)
Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) (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 3A0723A1122 for <netmod@ietf.org>; Wed, 17 Mar 2021 11:36:46 -0700 (PDT)
Received: by mail-ej1-x62b.google.com with SMTP id b9so25680ejc.11 for <netmod@ietf.org>; Wed, 17 Mar 2021 11:36:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadband-forum-org.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=w4kwFkbR1b9IZWE5nh31a6W6JJlCml5XPNS4lDGFaxU=; b=un9brJpNAMFTfStbWHQZwV6P3OrmgV0RDt+ujzZh0O4Xwxgl33Vp+HTHwop6P2lTOd jB53qLIrb0TlxqTDiF8F2YohJiVPax6s3x+1HiupyaPM4Itfw3xjLpYXVQFtxNiJhpAW 2BLP/7UCrqXRAnCMAzHWPNkTNahQodc3ohezXLotR37mlPU96A7eOFOAAXHmf1N0No9p /tjwCgKusdcLo4lsTWjb4zPa/b48E15Zq6J8CcJq0/I9KmZzER6yM8P9o2noB4oNrOnZ PBqCABkwmwNE6OapBllefoiEHeqbP+2X7JF3qUmtzaNSsQab8NvSZGt7Uc8ZKG0v1Uqr cmgQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=w4kwFkbR1b9IZWE5nh31a6W6JJlCml5XPNS4lDGFaxU=; b=pSQOljgjg/ixsw/7sMlZK/2OZhvfu0pv3Fg49b47bQoo7uDHY/d/cjO2i2HjbqB2WU dqVi6fZILFfkGg6rhIkwGcyCvmW60ZBGSXjmylkVJdwR13Q37TurZe0Y6DbN4o2djlH/ /vip0+YAOujShU+/7/u46iAT366QVpJHiOpmRwBSUwHZyZAi/njbtXW+BWm9iITMdQG9 xa6IRGz4dxNdeMgEFtnCVmejx49sIeXaAx5bmVJHY6M/5CubSVZdFD69eimEUQy07agS S3jMyNHPW/n58wY7P06k+aBwAnYyc9rDFsqztQK95BQaar2Yo/H/amwJMNTYHAG4t9lt Jtnw==
X-Gm-Message-State: AOAM533AVASs/xASURr1GUDF+yvXZuSEZaNNExcpkHItqA87kTmvwY8g jn4NyBDHngFKl8Qi9A8bs+O8qdOzyEmAYZkEU+SEm7FBgHY=
X-Google-Smtp-Source: ABdhPJxk9V0Usis3Lv8W3l5wc0n0YxBBiomUtxbOSU1FYZMxvqLYfKOyLYBu9JkLGEnxB2/imsNhsGLdsRmhC5grMbk=
X-Received: by 2002:a17:906:8043:: with SMTP id x3mr36239364ejw.149.1616006204679; Wed, 17 Mar 2021 11:36:44 -0700 (PDT)
MIME-Version: 1.0
References: <0713027c-3716-11f3-9a6f-69b7dff60916@lightside-instruments.com> <13cdc883-3d57-ad5a-1fa6-7c2802d4aae4@lightside-instruments.com> <CABCOCHT6Jx4RRYCrg7FdL_8s6_aSc13h83e0Go0QL5Rz8UWWZQ@mail.gmail.com>
In-Reply-To: <CABCOCHT6Jx4RRYCrg7FdL_8s6_aSc13h83e0Go0QL5Rz8UWWZQ@mail.gmail.com>
From: William Lupton <wlupton@broadband-forum.org>
Date: Wed, 17 Mar 2021 18:36:33 +0000
Message-ID: <CAEe_xxhuZRZ2i-TkOPL+EwhujAX2mqSWCOEpiW6oPOBv9EJnqA@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
Cc: Vladimir Vassilev <vladimir@lightside-instruments.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000c9011605bdbfc361"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Bx64zb-exoIXPz5wWiIjnC4utuA>
Subject: Re: [netmod] warn: Module's revisions are not unique (2018-06-28).
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: Wed, 17 Mar 2021 18:36:48 -0000

Also note that the YANG catalog keys modules by (name, revision,
organization).

On Wed, 17 Mar 2021 at 18:21, Andy Bierman <andy@yumaworks.com> wrote:

>
>
> On Wed, Mar 17, 2021 at 8:36 AM Vladimir Vassilev <
> vladimir@lightside-instruments.com> wrote:
>
>>
>> On 16/03/2021 13.36, Vladimir Vassilev wrote:
>> > Hei,
>> >
>> > Many drafts and RFCs are flagged with warnings by the tracker
>> > validation tools:
>> >
>> > ...
>> > yanglint SO 1.6.7: yanglint --verbose -p {tmplib} -p {rfclib} -p
>> > {draftlib} -p {ianalib} -p {cataloglib} {model} -i:
>> > warn: Module's revisions are not unique (2018-06-28).
>> >
>> > ...
>> >
>> > Does anyone know what causes this warning?
>>
>> Seems the warning is issued when iana-if-type@2020-01-10.yang is
>> processed. It contains 2 revision (history) statements with identical
>> dates 2018-06-28.
>>
>> IMO Multiple revision statements with the same date are valid so the
>> tool reporting the warning has to be fixed.
>>
>>
>
> I disagree.  Our compiler has a similar warning.
>
> The YANG Library treats entries with the exact same module name and
> revision-date as
> the same module.  The protocols that currently advertise YANG module
> capabilities
> all use module name and revision-date to identify a unique module revision.
>
> A compiler warning simply means "Are you sure you meant to do this?"
> This is usually a cut-and-paste error.
>
>
>
>>
>> Vladimir
>>
>>
> Andy
>
>
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
>>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>