Re: [netmod] Query about augmenting module from submodule in YANG 1.0

Robert Wilton <rwilton@cisco.com> Mon, 21 August 2017 10:23 UTC

Return-Path: <rwilton@cisco.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 121E41329BD for <netmod@ietfa.amsl.com>; Mon, 21 Aug 2017 03:23:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 zDLS83iygfZx for <netmod@ietfa.amsl.com>; Mon, 21 Aug 2017 03:23:53 -0700 (PDT)
Received: from aer-iport-2.cisco.com (aer-iport-2.cisco.com [173.38.203.52]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE3181329B3 for <netmod@ietf.org>; Mon, 21 Aug 2017 03:23:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1237; q=dns/txt; s=iport; t=1503311033; x=1504520633; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=L4X8+gYtKSMniyXhVadv+ox3ra4dNTUxgBqxWGgTULA=; b=m6gPxAfftOUwuFEztao2E0dOIWKtocUEIgaQ5Jx7kV9CWXzTpm2PkBFR +EW68cNJQGUQZqTlDqrFPwx2jo4HVfMgpiEQKIQ67aCqyxCjSOY4y3ZBt 3Iix0Nt9FYZx+dowufIp9IZUO6/3BgP3VoinVpopuSOH9ZvYeQMHxayDz s=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0C2AgC+s5pZ/xbLJq1dGQEBAQEBAQEBAQEBBwEBAQEBhD45hFOLDpEQmDAshRsChEAUAQIBAQEBAQEBayiFGAEBAQECASMVPBULGAICJgICVxMIAQGKJQgQrxmCJotWAQEBAQEFAQEBAR8FgQuCHYNOgWMrgnyFP4JHgmEFoE+HVIxui0mHFY0yiG42IYEKMiEIHBWHZD+LFgEBAQ
X-IronPort-AV: E=Sophos;i="5.41,408,1498521600"; d="scan'208";a="654089292"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Aug 2017 10:23:48 +0000
Received: from [10.63.23.66] (dhcp-ensft1-uk-vla370-10-63-23-66.cisco.com [10.63.23.66]) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id v7LANmxY014743 for <netmod@ietf.org>; Mon, 21 Aug 2017 10:23:48 GMT
To: netmod@ietf.org
References: <E3378E0605547F4E854DEE0CB1116AB020865B@gbcdcmbx03.intl.att.com> <85A1FF5A-EF0B-4278-B4FF-3FE431486B2C@tail-f.com> <E3378E0605547F4E854DEE0CB1116AB02102DC@gbcdcmbx03.intl.att.com> <11857e8e-f46e-dc2e-cf99-80224859d221@transpacket.com> <E3378E0605547F4E854DEE0CB1116AB0210631@gbcdcmbx03.intl.att.com> <defe35bb-bb8b-f1f0-d8c4-2d2d0f23731b@transpacket.com> <1502290869.16638.15.camel@nic.cz> <20170809151312.GC42207@elstar.local>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <6ef68131-f731-0edc-b731-d7ec85924f03@cisco.com>
Date: Mon, 21 Aug 2017 11:23:47 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <20170809151312.GC42207@elstar.local>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Jvl8uijcY8ffR3iQ-Xz-tbq5Ofg>
Subject: Re: [netmod] Query about augmenting module from submodule in YANG 1.0
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: Mon, 21 Aug 2017 10:23:55 -0000


On 09/08/2017 16:13, Juergen Schoenwaelder wrote:
> On Wed, Aug 09, 2017 at 05:01:09PM +0200, Ladislav Lhotka wrote:
>> I remember that in early stages of YANG there was some irrational
>> fear of introducing too many namespaces, and submodules may be a
>> consequence of it. As you write, submodules provide no benefits
>> whatsoever in terms of modularity, but the overhead in terms of
>> metadata, IANA registration etc. is pretty much the same as for
>> modules.
> In case YANG 2.0 is ever done, I suggest someone files a proposal to
> remove submodules if the cost/benefit ratio is at odds. There is
> nothing wrong with removing stuff that has been found problematic.
I agree.

I've added https://github.com/netmod-wg/yang-next/issues/26

Rob

>
> The motivation for submodules was that organizations maintaining large
> modules with multiple people can do so without having to mess around
> with tools like m4 scripts to produce a single module from 'snippets'
> and to avoid integration surprises. But perhaps using m4 scripts and
> decent version control systems (that can integrate and compile on
> checkin) is indeed cheaper than having submodules part of the YANG
> language itself.
>
> /js
>