Re: [netmod] regarding draft-bierman-netmod-yang-data-ext-00

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 01 September 2017 20:55 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 D9BDB13441A for <netmod@ietfa.amsl.com>; Fri, 1 Sep 2017 13:55:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=ham autolearn_force=no
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 k1ws8QSMHGOG for <netmod@ietfa.amsl.com>; Fri, 1 Sep 2017 13:55:15 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AC2E413462A for <netmod@ietf.org>; Fri, 1 Sep 2017 13:55:15 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 808ED6A2; Fri, 1 Sep 2017 22:55:14 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id lIKlBrt_lUO1; Fri, 1 Sep 2017 22:55:11 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Fri, 1 Sep 2017 22:55:14 +0200 (CEST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 5CDDD200E2; Fri, 1 Sep 2017 22:55:14 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id ZVMmUZjlJQAC; Fri, 1 Sep 2017 22:55:14 +0200 (CEST)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id D30F5200E0; Fri, 1 Sep 2017 22:55:12 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id 24AA2407A5E2; Fri, 1 Sep 2017 22:55:11 +0200 (CEST)
Date: Fri, 01 Sep 2017 22:55:11 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Andy Bierman <andy@yumaworks.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20170901205511.3hgalynjpur2gjqf@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Kent Watsen <kwatsen@juniper.net>, Andy Bierman <andy@yumaworks.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <57AA997C-6E52-49D2-B6AF-7DDE8F13D7B3@juniper.net> <CABCOCHSA_dqNwy=xj4vj8bCHKaJhisx0qCccYCyyBdLWXeW2Rw@mail.gmail.com> <56D58AA8-E71E-4CA1-B81E-70E2EDD94E91@juniper.net> <CABCOCHShmLL03Z7H=ZAFFj9N+=qqDjHttprR-_ev6i+0g21iJQ@mail.gmail.com> <E4E11358-9E08-415E-ADBC-B4F3A2F81AE7@juniper.net>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <E4E11358-9E08-415E-ADBC-B4F3A2F81AE7@juniper.net>
User-Agent: NeoMutt/20170714 (1.8.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/bMHk6B2Rb6mSx43osQZ4gbP90pk>
Subject: Re: [netmod] regarding draft-bierman-netmod-yang-data-ext-00
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: Fri, 01 Sep 2017 20:55:18 -0000

On Fri, Sep 01, 2017 at 07:21:55PM +0000, Kent Watsen wrote:
> 
> The grouping approach only works for 'B' if the definition of 'A'
> had the foresight to define a grouping 'B' could use, but 'C' could
> be out of luck.

This is generally true. YANG kind of require to design something for
reuse (and often you have to be carefuly how you word descriptions
etc.  for things that are intended to be reused).
 
> Gotcha.  What do other people think, would a "uses-yang-data"
> statement be generally more useful?

But does this mean we also do uses-yang-container, uses-yang-list,
uses-yang-xyz to other definitions as well? I do not think this is
desirable and why would yang-data be any different?

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>