[netmod] import-by-semver issue

Andy Bierman <andy@yumaworks.com> Sat, 23 March 2019 19:00 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 67D33130E46 for <netmod@ietfa.amsl.com>; Sat, 23 Mar 2019 12:00:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 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] 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 DEKampTSRmM6 for <netmod@ietfa.amsl.com>; Sat, 23 Mar 2019 12:00:56 -0700 (PDT)
Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (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 B53DB130EC5 for <netmod@ietf.org>; Sat, 23 Mar 2019 12:00:55 -0700 (PDT)
Received: by mail-lf1-x133.google.com with SMTP id 5so3449870lft.12 for <netmod@ietf.org>; Sat, 23 Mar 2019 12:00:55 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=mHHdw7dzhJpjOcuovxigFMfkhfYrhh5f4SQgjIZfIC0=; b=w9FJxKRgX4JS1ZJKxH68ybe+pfuAGvqTfXmWjSk9gEwwOZV92iwQ3AoH+TDXeHLeiC wrsfWi8m7S7MENr2DW2Dik8EhsK29Rc3YrlCILN98fktUfyKmu/+Mnb6txQukOMz6hP8 lDLSjttb0DuqrBTmdK8pmGlnlkhGDFSiQ+R3yy9nJVvAronmqNJw61Y0P+DmS1CIYx7Z nBgfDKHHMfIcG+cTr/ZTSQrSjOvMr3aJXkijH9h+6Fo1+ren1YZqxWXDHWq45po+v6sR RUCR7wfmyISFIJEsLa+C/zW4owsN8SYSCD390h//3JsK40RC2wFiKCjDJxYKBazEWXe7 O0aA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mHHdw7dzhJpjOcuovxigFMfkhfYrhh5f4SQgjIZfIC0=; b=EQ4aKN4fizYmIPpEHXSIRj/nl8WauhUEhJZ+QRiKfyUKDED8MZy/ecv+IhDb8hzjpD Vz/Qja9kl+65i7CoqNifjN7lxMYPXNcmNKGRLCUSeh8vxVQyJLlC6Qf2i3TrNrWQ3rEI iOu7L4RMXxqIOg2dKPzdEBzYI9OHlhc/awkI1xTglm1BJ8fw8ueCHZTVG4sCSE4zAUBe Xmra6t0SsPO83xdZFx0l6ZLyvTSRLGaXnhkeIkzcVlGfO2iwSW0NXwtqBKwBfsEqEV6i SuIawgtZ3gnOeMJMRMVwWp6hEHAkWPgc+aQsNLzjDjaUL8jm9kp6i/03t8t8fw1UieZj 96eg==
X-Gm-Message-State: APjAAAVh4/Kq4XLy9Y7GPZo59FqG8yHMSBcmrl6CuQABLn955EEeCOu5 OwB1fUqGbhJByNUeBu1jEtORo9hIBr9QXU7AIS9ljhb9M0o=
X-Google-Smtp-Source: APXvYqwB2lBTK5cNjkUL3yL/hUHf5C8XVgcfH5PPfa56ul47fbygc4eaWIp9sECHibYcv2Qs3tjIi0VevRUHGW/xhYU=
X-Received: by 2002:ac2:42da:: with SMTP id n26mr7408400lfl.91.1553367653510; Sat, 23 Mar 2019 12:00:53 -0700 (PDT)
MIME-Version: 1.0
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 23 Mar 2019 12:00:42 -0700
Message-ID: <CABCOCHRQXwRM1_xNzwoWxdT6e_zSNSFpvooDDmP3g11gxd3NuA@mail.gmail.com>
To: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000318b0c0584c7972c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/D432t8CXIN1giUWJq4tOl6_d1N4>
Subject: [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: Sat, 23 Mar 2019 19:01:05 -0000

Hi,

I am wondering if there are implementations of this draft:

https://tools.ietf.org/html/draft-verdt-netmod-yang-semver-00


Specifically, implementation of the  'version' extension

https://tools.ietf.org/html/draft-verdt-netmod-yang-semver-00#section-3


IMO it is a really bad idea to put the semantics of how to import modules
in one of the modules that is imported.  Your example shows ietf-semver
imported first with no extension, but it could be last with a version
extension.

          // all other imports, then last....

    import ietf-semver {

      prefix "semver";

      semver:version 1.1.2;

    }


Translation unit parsing is something that needs to be built into the
compiler.
This should be part of YANG 1.2 if it is done.


  import example-module {

     prefix exmod;
     version 1.2.0+;
   }


To a compiler writer, the difference is huge. (ietf-semver extensions need
to
be built-in statements in YANG, at least 'version')


BTW, all the import examples are missing the mandatory prefix-stmt


Andy