Re: [netmod] ietf-yang-library edit

Andy Bierman <andy@yumaworks.com> Wed, 15 November 2017 05:20 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 3F97C127201 for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 21:20:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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_NONE=-0.0001, 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=yumaworks-com.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 XSLuwluiTu6r for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 21:20:05 -0800 (PST)
Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (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 BA284127058 for <netmod@ietf.org>; Tue, 14 Nov 2017 21:20:04 -0800 (PST)
Received: by mail-lf0-x231.google.com with SMTP id g35so10536721lfi.13 for <netmod@ietf.org>; Tue, 14 Nov 2017 21:20:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Yq4EiedyJgdsIQYWdBEhJI2FrHQCZgW5TfEjRknod2s=; b=eeHGvtyhqO8S6Kz7EnmY/k4Im4VQroBMmcB8IDWpFGhYAMvkY2+LYpJvQy+AFDe/de 82g8INu0nSWZOR4cq6+8SxH6kdfV+icAXRVO2u8NlJLpgYiN2PfujbLTWu/+d+Ve0t9o BOJxe3DWV4fEfyVx09mI2+BFR1q+f0M0pSB5E7htvbgGEG9AmWL7EKldFS3q16mGm0RX QunRyTS/ya2B5dtDjw1613bap0IqLQfh1p6S1q+k73PR7MEMsNlBRBFcLzo3IyMz1Vq5 SHWf3/OrOTnouX9bd7d/0LsFmyQoM/siAkzK/wqJmqYK1OEsz+0AcAsYcS9doG/Be7Bs ehMw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Yq4EiedyJgdsIQYWdBEhJI2FrHQCZgW5TfEjRknod2s=; b=krbjWQAyQIfghJOOb+r82/JSkJgtMvzOhb/yr89jlXpITqzM4SXhIuZozgwgfC0wMc wYvlkl0usgvAiTt4VnZjg+8Pv6BBk/TlNVusPC0TKLFAGG8rdnGoqZC/ZcLnVQPHsMok nDDHqog8LbJUprV9RpX/MKtVDqaS4cCaMNstHS8Q+KiaDzfnIalK6vxelzlsLD62uOYk /HioX23ujZaeqqWPzGmNhveJ8eh84tkDtu3n0dxOHjoJC/RWt3Bz4zFYeMpHwKfr1DGE c1KvuBq8GZcbuHpzlP3KGA/weRhKkvtbwBViJ0d2lvqgTwHO0unGIpGX8cAe4G/RVacO 9a3Q==
X-Gm-Message-State: AJaThX5lSQ80scgiqInwT0GhSh0TtGDa5U2M7pMGiIVgiTcj+MNAgNd7 jzxOHs5v+uYrPk4RfS4GSjmJk4qivVJLShkNsMSdeA==
X-Google-Smtp-Source: AGs4zMb0NMJY8RUfx2pEU2Ge9gqh27sXp/jxlWWw6Gl8mAI0xbRBJ82O/jAMDnJDvVKEOrsu7610m1K1ZWU9iqxzENA=
X-Received: by 10.46.86.195 with SMTP id k64mr6250140lje.81.1510723202900; Tue, 14 Nov 2017 21:20:02 -0800 (PST)
MIME-Version: 1.0
Received: by 10.25.33.81 with HTTP; Tue, 14 Nov 2017 21:20:02 -0800 (PST)
In-Reply-To: <14b6c48a-3d59-6d71-fff3-c034db085227@cisco.com>
References: <CABCOCHRr0UCuS1rOVx0zRV5AD=4g9FB4F=y2Jmc6XGe=MokFUQ@mail.gmail.com> <e4ea2a38-4e13-12b1-31b2-be7fbbb30d06@ericsson.com> <14b6c48a-3d59-6d71-fff3-c034db085227@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 14 Nov 2017 21:20:02 -0800
Message-ID: <CABCOCHQ20hKkTtaMbLA8PwfTLYY7ayo2rcj6hPJ_chmXJ8c7GQ@mail.gmail.com>
To: Robert Wilton <rwilton@cisco.com>
Cc: Balazs Lengyel <balazs.lengyel@ericsson.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c14aa74dcf790055dfea7af"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/9bgMtbanl3eCKaPcTzGEH_L55gA>
Subject: Re: [netmod] ietf-yang-library edit
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 15 Nov 2017 05:20:07 -0000

Hi,

The entire reason for import-by-revision is to make sure that
the importing module can safely use definitions that have been added after
the first revision of the imported module.


Andy



On Tue, Nov 14, 2017 at 9:04 PM, Robert Wilton <rwilton@cisco.com> wrote:

>
>
> On 15/11/2017 12:48, Balazs Lengyel wrote:
>
> Hello,
>
> I though our strategy was to always use the latest revision available. At
> least till now that works for me.
>
> Yes, I'm not convinced that the import by revision is really that helpful
> since it states that it must pull in exactly that version, but really the
> dependency is "at least version X, assuming newer revisions are backwards
> compatible".
>
> E.g. if/when ietf-yang-types is updated again, it would be cleaner/simpler
> if the server could just use the latest version rather than having to
> potentially import multiple revisions.
>
> Thanks,
> Rob
>
>
> regards Balazs
>
> On 2017-11-15 10:33, Andy Bierman wrote:
>
> Hi,
>
> The ietf-yang-library module relies on "yang-identifier", which was added
> to the 2nd
> version of the ietf-yang-types. It does not compile unless that version is
> used.
>
>
> OLD:
>
>     import ietf-yang-types {
>         prefix yang;
>     }
>
>
> NEW:
>
>     import ietf-yang-types {
>         prefix yang;
>         revision-date "2013-07-15";
>         reference "RFC 6991: Common YANG Data Types";
>     }
>
>
> There are other modules such as ietf-ip that rely on RFC 6991 additions
> and the import-stmt (in every case) should be changed to specify the
> required revision-date.
>
>
> Andy
>
>
>
>
> _______________________________________________
> netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
>
>
> --
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com
>
>
>
> _______________________________________________
> netmod mailing listnetmod@ietf.orghttps://www.ietf.org/mailman/listinfo/netmod
>
>
>