Re: [netmod] import-by-semver issue

Andy Bierman <andy@yumaworks.com> Sun, 24 March 2019 17:49 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 40147120092 for <netmod@ietfa.amsl.com>; Sun, 24 Mar 2019 10:49:47 -0700 (PDT)
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, DKIMWL_WL_MED=-0.001, 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 lZoTn4SfP7oT for <netmod@ietfa.amsl.com>; Sun, 24 Mar 2019 10:49:44 -0700 (PDT)
Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) (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 A0E49120075 for <netmod@ietf.org>; Sun, 24 Mar 2019 10:49:43 -0700 (PDT)
Received: by mail-lj1-x22b.google.com with SMTP id f18so5818983lja.10 for <netmod@ietf.org>; Sun, 24 Mar 2019 10:49:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=kW9dFZZ4q62+09HT+z0TRGVH0q9efYzoV9J5DqPqpk4=; b=kQzekxqMBL3WQ80JrKWuZlaJBOUjT/MjI5LsbHBR/L/97RCjCzeY9QgQD0hOmrK4Yz 5RKs7RkQe0IuNzdSY99bUqraJhgd2uOIxKQF8fweU9ybs0fRufdGXCMBDUJT2MHzs1KA E3bKSLUUjMeVT/rJGAkmPoZy5hpbemdytDFuLMW7VGlGqMla78V5fE9wnvy5VttzIPCO Ch5esFw5sptEJB7hBF1fbSkm6kBmvwBbcfpOVldolAt0Bl0/9HwrPeWQ2j71vxsndq5j +2fWMuOM4Ev85AZfKnZ9njCW/nDB+g36uRiL5wl+ZV7KQDFPwRVMtj4gw4zkmC/ZbzO8 pjOw==
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; bh=kW9dFZZ4q62+09HT+z0TRGVH0q9efYzoV9J5DqPqpk4=; b=NIutZCDQUd3ptrIB3SzHOVjrNXXF+MAAQmNSsut3cjqWlE1DlR1wpkjmX58SOQOZ9o nMnbIKgjyAhPOwAY1K+QM1r8SaOLQwXzw9+WpgJWu6fN3+zfSmaPlPnxx/zE3zLZY4zh VgPCWn3p33fj5TdKuIoA6m7tP2F3/xsj+4fMa5w2EyhRcLWO/8/47PiDvnZExVTGGAeR WwgorkZbhw6J5OHgObfm+d5PQiBVQkVrGXPWt9SXpoQpKO5amD8qVyCJdlK2hJLVJQIo SZDtuMirRWfUFiakZSxnonrteSiFxjgcIq6Be75aWG0rJDVegiPX1Cw4Ch68kw8Z+a54 wGgA==
X-Gm-Message-State: APjAAAXGHI/8Vf/5FP+Oa1CCG+F8AvLNrTDJ3p1EbJqnsmOmF/6Ji8pq Lu94/i4Zly+FLSkAB43IPsnC7oJdcKswJQZ/GN7ziQ==
X-Google-Smtp-Source: APXvYqzrLKF7uD3aeqqyhRd37D/wgzqpbJpMM5hXufZQGplJ8PEXGEC3WXab8kZlzMT3pVg784yB+ZDMMUTPV1y/3ig=
X-Received: by 2002:a2e:12c4:: with SMTP id 65mr10905468ljs.141.1553449781740; Sun, 24 Mar 2019 10:49:41 -0700 (PDT)
MIME-Version: 1.0
References: <CABCOCHRQXwRM1_xNzwoWxdT6e_zSNSFpvooDDmP3g11gxd3NuA@mail.gmail.com> <892d5ab4649549698808a6150067f840@XCH-RCD-007.cisco.com> <CABCOCHT3qfo4s7JV6WktWuz2C_UA6NFjqdVcjxVjxCDTUHWDzg@mail.gmail.com> <4c0a8dca338f4ca384dea933f046511e@XCH-RCD-007.cisco.com> <20190324143116.evgabiqpmz5gwgem@anna.jacobs.jacobs-university.de> <de771cdd329046cfa42a92d8d8ecf525@XCH-RCD-007.cisco.com> <20190324161451.35uus4wwjjwbgarh@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190324161451.35uus4wwjjwbgarh@anna.jacobs.jacobs-university.de>
From: Andy Bierman <andy@yumaworks.com>
Date: Sun, 24 Mar 2019 10:49:30 -0700
Message-ID: <CABCOCHQ9i-=3E2FKK99quqH-d18NwAetf8MgjF8gvT3Su8qgaQ@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Rob Wilton (rwilton)" <rwilton@cisco.com>, Andy Bierman <andy@yumaworks.com>, NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006ad7560584dab6f3"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MKpaYfMhiwaPZ6wId6QXYU3vEZs>
Subject: Re: [netmod] import-by-semver issue
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: Sun, 24 Mar 2019 17:49:55 -0000

On Sun, Mar 24, 2019 at 9:14 AM Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Sun, Mar 24, 2019 at 03:14:18PM +0000, Rob Wilton (rwilton) wrote:
> >
> > But that is true of YANG compilers today.  If there are multiple
> revisions of a module that could be chosen, then each compiler is at
> liberty to decide which revision to choose (last paragraph of section 5.1.1
> in RFC 7950).
> >
>
> The difference is that NBC changes are not allowed. As long as you
> find a certain symbol, it has fixed and predictable semantics.
>
> Sorry, but changing the way the import statement works is an NBC
> change of YANG and this can't be done with extensions.
>
>
I strongly agree.
The expected behavior for tools needs to be consistent, especially for
the construction of the schema tree, which depends on the import rules.

Implementation complexity should matter in the IETF, but it does not.
Just keep raising the complexity up to 10 and complain that the tools have
bugs,
as if the two are unrelated. (Simply looking for a hardwired string
"semver:version"
will not work since the prefix is not required to be "semver" in the
import-stmt.)




> /js
>


Andy


> --
> Juergen Schoenwaelder           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/>
>