Re: [netmod] Y45: conformance-stmt proposal
Ladislav Lhotka <lhotka@nic.cz> Thu, 08 January 2015 09:51 UTC
Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3959F1ACCF4 for <netmod@ietfa.amsl.com>; Thu, 8 Jan 2015 01:51:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham
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 xgyKQDOy-XNW for <netmod@ietfa.amsl.com>; Thu, 8 Jan 2015 01:51:41 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 10E231A19F0 for <netmod@ietf.org>; Thu, 8 Jan 2015 01:51:41 -0800 (PST)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 7DD8A1CC000F; Thu, 8 Jan 2015 10:51:48 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Andy Bierman <andy@yumaworks.com>, "netmod@ietf.org" <netmod@ietf.org>
In-Reply-To: <CABCOCHR6r-FiTf-gnOr53DMGn4V+qiUNAbS_YJf4acjmjFOooQ@mail.gmail.com>
References: <CABCOCHR6r-FiTf-gnOr53DMGn4V+qiUNAbS_YJf4acjmjFOooQ@mail.gmail.com>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Thu, 08 Jan 2015 10:51:39 +0100
Message-ID: <m28uhdbnx0.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: http://mailarchive.ietf.org/arch/msg/netmod/ceLg6zDGZGsoeQmChuyfOrGdQf8
Subject: Re: [netmod] Y45: conformance-stmt proposal
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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, 08 Jan 2015 09:51:43 -0000
Andy Bierman <andy@yumaworks.com> writes:
> Hi,
>
> I hope we can resolve this issue on the mailing list, since
> it was skipped in the interim meeting.
>
> IMO import-by-revision is fatally flawed.
> The problem with representing the conformance dependency chain
> in the import-stmt is that not every module is using import-by-revision,
> and if A.1 imports B.1 and B.1 imports C.any, then the dependency
> chain for module A.1 is not deterministic.
>
> import-by-revision everywhere is going to be unmanageable,
> even if all the effort to update every YANG module in existence
> was made.
Why is it necessary to do such updates? If module A imports
B@2014-01-08, then it can continue using definitions from that
particular revision of B forever, even if B is updated.
>
> Instead, a conformance-stmt much simpler than the SMIv2
> MODULE-COMPLIANCE macro is needed:
>
> module foo {
> ...
> import ietf-yang-types { prefix yang; }
> import ietf-inet-types { prefix inet; }
> import ietf-interfaces { prefix if; }
>
> revision 2014-01-05;
> ....
>
> conformance 2014-01-05 {
> module ietf-inet-types@2013-07-15;
> module ietf-yang-types@2013-07-15;
> module ietf-interfaces@2014-05-08;
> }
> }
>
I don't understand: how is this different from the case when the
revisions of imported modules are specified directly in import statements?
Lada
>
> Tools can generate this stmt or can be fairly easily generated by hand.
> Import-by-revision would no longer be used.
>
> There would be 1 or more conformance-stmts in descending
> date order, like the revision-stmt history.
>
>
> Andy
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C
- [netmod] Y45: conformance-stmt proposal Andy Bierman
- Re: [netmod] Y45: conformance-stmt proposal Ladislav Lhotka
- Re: [netmod] Y45: conformance-stmt proposal Andy Bierman
- Re: [netmod] Y45: conformance-stmt proposal Ladislav Lhotka
- Re: [netmod] Y45: conformance-stmt proposal Andy Bierman