Re: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-02.txt

Alexander Clemm <alexander.clemm@huawei.com> Thu, 26 October 2017 00:20 UTC

Return-Path: <alexander.clemm@huawei.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 E8F2A13F4FC for <netmod@ietfa.amsl.com>; Wed, 25 Oct 2017 17:20:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.22
X-Spam-Level:
X-Spam-Status: No, score=-4.22 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 BmYxtK0SqyQc for <netmod@ietfa.amsl.com>; Wed, 25 Oct 2017 17:20:53 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 241D813A441 for <netmod@ietf.org>; Wed, 25 Oct 2017 17:20:53 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml704-cah.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DYL27278; Thu, 26 Oct 2017 00:20:49 +0000 (GMT)
Received: from SJCEML702-CHM.china.huawei.com (10.208.112.38) by lhreml704-cah.china.huawei.com (10.201.108.45) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 26 Oct 2017 01:20:47 +0100
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.102]) by SJCEML702-CHM.china.huawei.com ([169.254.4.145]) with mapi id 14.03.0361.001; Wed, 25 Oct 2017 17:20:42 -0700
From: Alexander Clemm <alexander.clemm@huawei.com>
To: Kent Watsen <kwatsen@juniper.net>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Robert Wilton <rwilton@cisco.com>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-02.txt
Thread-Index: AQHTTY/ZXNxDwTOxe0Sv8TZmZdoHr6L1AHIAgAABvgCAABb3AIAAnYkA//+OBbA=
Date: Thu, 26 Oct 2017 00:20:41 +0000
Message-ID: <644DA50AFA8C314EA9BDDAC83BD38A2E0EAB954F@sjceml521-mbx.china.huawei.com>
References: <150893578927.4882.2117597388624976982@ietfa.amsl.com> <23892572-a0db-d24b-e591-a19799ace9ae@labn.net> <b24a3cc9-27eb-4352-2cd7-1a9ab8d9704a@cisco.com> <20171025144222.fyjpong223vhz637@elstar.local> <0D675509-60FA-4EC7-9773-DB2451BDC2B7@juniper.net>
In-Reply-To: <0D675509-60FA-4EC7-9773-DB2451BDC2B7@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.213.48.102]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090206.59F12A62.0080, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.1.102, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 27132543671324f0e5968e894f7c0e3b
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/R5uLw8a5JtyTGcKB6Yy2buY8Mug>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-02.txt
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: Thu, 26 Oct 2017 00:20:56 -0000

I would find an  option to show "uses" very useful, instead of always having to expand groupings.  Depending on the groupings and the amount of groupings reuse it can cut down complexity of trees substantially and directs focus to the forest, not the trees - really ultimately the intent of this.  

--- Alex

> -----Original Message-----
> From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Kent Watsen
> Sent: Wednesday, October 25, 2017 5:06 PM
> To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>;
> Robert Wilton <rwilton@cisco.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-
> 02.txt
> 
> From another thread in NETCONF, Juergen writes:
> 
>   I do not know whether the official tree diagram formats will
>   have ways to show say a container with used groupings collapsed.
>   This may actually be useful sometimes, but this is not what you
>   are look for here either. I am thinking about
> 
>    +--rw container
>       +-u-- <grouping>       (I'm guess 'u' for "uses")
>       +--rw regular-leaf
> 
>   Clearly, this is for a different thread...
> 
>   And I wrote back "It might be helpful to have the ability to
>   output a tree diagram that has not expanded its groupings.
>   But, as you say, for another thread."
> 
> 
> To add to this, I wrote a module recently that defined an RPC
> and yang-data around the same groupings.  An ability to 1) print
> the groupings and 2) only print references to the groupings,
> would've collapsed the tree-diagram tremendously.  For example:
> 
> rpcs:
> 
>   foobar
>     input
>       +-u-- <input-grouping>
>     output
>       +-u-- <output-grouping>
> 
> yang-data:
> 
>   input-artifact
>     +-u-- <input-grouping>
> 
>   output-artifact
>     +-u-- <output-grouping>
> 
> groupings:
> 
>   input-grouping
>    +-- <full tree here>
> 
>   output-grouping
>    +-- full tree here>
> 
> 
> Thoughts?
> 
> Kent // contributor
> 
> 
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod