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

Kent Watsen <kwatsen@juniper.net> Thu, 26 October 2017 18:28 UTC

Return-Path: <kwatsen@juniper.net>
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 645BD13F44A for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 11:28:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.02
X-Spam-Level:
X-Spam-Status: No, score=-2.02 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_NONE=-0.0001, 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
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 UPjOzTMEUkoj for <netmod@ietfa.amsl.com>; Thu, 26 Oct 2017 11:28:36 -0700 (PDT)
Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0123.outbound.protection.outlook.com [104.47.40.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 49BC213F448 for <netmod@ietf.org>; Thu, 26 Oct 2017 11:28:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XCpyU0n3evKjq8k1I/K/vF9JOTonuusbkSNmtbc8pyM=; b=FyX+sVy+LcPGy1cBuV/WewcPAU/QRj83xNSGGYHnlHYTmDdKdGqWcLzqG68UnQdy46Bk9uR+6h8nve9IUUABUFWVm28Rh+n8wvCjb/PQhndyW13Y+5wIT8MtjfO1NKXM1q5hYcIftAGbHxN1B1mXjQMmAPUJxE8hARsovcoh+pk=
Received: from BN1PR05MB280.namprd05.prod.outlook.com (10.141.64.153) by BN1PR05MB280.namprd05.prod.outlook.com (10.141.64.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.3; Thu, 26 Oct 2017 18:28:33 +0000
Received: from BN1PR05MB280.namprd05.prod.outlook.com ([fe80::2501:f69b:d3d5:1497]) by BN1PR05MB280.namprd05.prod.outlook.com ([fe80::2501:f69b:d3d5:1497%14]) with mapi id 15.20.0178.003; Thu, 26 Oct 2017 18:28:33 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Alexander Clemm <alexander.clemm@huawei.com>, 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/GCcSGoy8Ln0yx9ksq5tj726L0ixkAgAABvgCAABb3AIAAWnsAgABHGoCAAOzlAA==
Date: Thu, 26 Oct 2017 18:28:33 +0000
Message-ID: <11012066-FD51-44F2-BFEF-BB9CF5A100CA@juniper.net>
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> <644DA50AFA8C314EA9BDDAC83BD38A2E0EAB954F@sjceml521-mbx.china.huawei.com>
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0EAB954F@sjceml521-mbx.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-originating-ip: [66.129.241.14]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN1PR05MB280; 6:XHEqENwqUpXnqbS3FM6e9CIic6O9fYHVtDFDN1LUfUd8RpPg3vzLXgSM0WMQ0XmnYcRVVXYvQxzreYaYoITEsGg54zVgt5FW4+yTo1UcZ1ZPbf7/zgo+oyxFYcM5Tp7/5Cyl1BaK5TdJeRUyJr8tmEKk/BFL6MRFas3RZpJLkbKDtiAKaanyJtv3pTmlYHtm7fpJYxrmm7YY5MiOokARDxjD1nOADloFblJ2WKyKVGXK4U6F7Cf/v2oLlQm5Q9wXlQHtOyHmuUifPEGKQR6YvhqN+F43gUxeyWkIJxtmEl6j/+8whjZ/lfH5evB0Qy2URg+VqWbhtUNWv/FYcoFFlpSpy8xz7mOqYevwqtAyu58=; 5:kwDJuUqxAwnPCsLLPXWT05eFMzlYeJ/XS8GCMAAZmrnPnSxvTZAXrj0Y7M/D4QsgTTdBQij0RFZ8nkwPRSrBXTlsm/PrO1uBBC/zCidAJ3ylUn12hGlY/5EvbsuecXCdBzI6no10K/bz3Tp70K1rZK4LyrfQRz0Vt80WQiQmgaU=; 24:HiY7a310bftENpO8G3uekaEW7fqiFiPcS8V26QpQ/u3saI/Vzv01ka4dBcYYb1+ov+wUqJOKlMFfrVt0ZCTx7S8KbfuAycBqWyFdcqTQm6I=; 7:phDf198miu42SyI1kuYYo4jm5O7Fjwi+uRrSuP+3TQO5bJHPHlLZ1jYBrFp7YFU0tdkTuHINBFSFgA5CYFRi8G1lds3xWY5W3aXM65bQpdIQNVLBDyil8PtwQsNTew6Yd82KhoRgycFuRAjgF+X32p3GiXQTt7sufUE6eAmENZt/TGkzhjfJkFC51wKZfEjDzp+tRO46IHa1heVuf1RqoZqu9+lwPJCp4tnNpxE555iRGxDuaWg5IlGoXhTMN+46
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 17e9ee73-896a-4326-891c-08d51c9f5d99
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN1PR05MB280;
x-ms-traffictypediagnostic: BN1PR05MB280:
x-exchange-antispam-report-test: UriScan:(10436049006162)(95692535739014);
x-microsoft-antispam-prvs: <BN1PR05MB280B1D32FD06ED427153A5FA5450@BN1PR05MB280.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231020)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR05MB280; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR05MB280;
x-forefront-prvs: 04724A515E
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(346002)(376002)(39860400002)(199003)(189002)(13464003)(54356999)(25786009)(68736007)(6116002)(102836003)(101416001)(3846002)(110136005)(58126008)(76176999)(50986999)(36756003)(5660300001)(966005)(93886005)(5250100002)(3660700001)(81166006)(33656002)(81156014)(8676002)(3280700002)(8936002)(2900100001)(82746002)(86362001)(53546010)(105586002)(106356001)(4326008)(305945005)(575784001)(14454004)(230783001)(7736002)(2950100002)(66066001)(83716003)(6246003)(83506002)(6486002)(6506006)(478600001)(97736004)(99286003)(316002)(229853002)(6436002)(2906002)(189998001)(53936002)(6306002)(6512007); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR05MB280; H:BN1PR05MB280.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <8A302A2B909E814DABF45AAE85ECF47F@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 17e9ee73-896a-4326-891c-08d51c9f5d99
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2017 18:28:33.6951 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR05MB280
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3eBSleNY4nbv2ubMI486cfnRe30>
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 18:28:38 -0000

Indeed. There is a lot of grouping expansion occurring in some of your drafts.

K.  // contributor



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>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://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwIFAg&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=1qgtuzGNb20a7pv6KcMcR0B6nBIUiRm-gHq6W14zeIA&s=u9qR-F0sjdekCZClZZLcRgxYoVyuyixu9MlK9AO8QJI&e=