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

Kent Watsen <kwatsen@juniper.net> Thu, 26 October 2017 00:06 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 1314F13F4F1 for <netmod@ietfa.amsl.com>; Wed, 25 Oct 2017 17:06:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.011
X-Spam-Level:
X-Spam-Status: No, score=-3.011 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_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 heVtTF_YuJuC for <netmod@ietfa.amsl.com>; Wed, 25 Oct 2017 17:06:14 -0700 (PDT)
Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0128.outbound.protection.outlook.com [104.47.32.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B79813954B for <netmod@ietf.org>; Wed, 25 Oct 2017 17:06:14 -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=QLooy9q+s+dy2Dc4R/bfb4h0c6suAgXQPMIDyEp2iLc=; b=gZdMOYhfCLbwdtfyF3vCNTARml8sFudG6Tl9IxeflsuZrf/zc3yYC8zr3lqNKfpLjAXsV/omGbrqCr8uuSio6CSZM+fb0Az8bwrxon4KGeuMBNxTjWLTsg35pwFwjcol+Q3G50x7XWnWl00kJKg9wntZLA/PQfdf54iy2h/blGE=
Received: from BLUPR05MB275.namprd05.prod.outlook.com (10.141.22.149) by BLUPR05MB276.namprd05.prod.outlook.com (10.141.22.151) 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 00:06:12 +0000
Received: from BLUPR05MB275.namprd05.prod.outlook.com ([10.141.22.149]) by BLUPR05MB275.namprd05.prod.outlook.com ([10.141.22.149]) with mapi id 15.20.0178.003; Thu, 26 Oct 2017 00:06:12 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: 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/GCcSGoy8Ln0yx9ksq5tj726L0ixkAgAABvgCAABb3AIAAWnsA
Date: Thu, 26 Oct 2017 00:06:12 +0000
Message-ID: <0D675509-60FA-4EC7-9773-DB2451BDC2B7@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>
In-Reply-To: <20171025144222.fyjpong223vhz637@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.14]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BLUPR05MB276; 6:PHF4oXGVheipWUbyBUXOQ1gDPxMB7HyLqxSa7+nyYT/xOVFSPwOehceGTTyB9YiQFWoRLvGf+M0qXZDWsvX5YmdY/KmH3rVZrM8279GwZ7w0uxfjTjGrxPEMpd+CJWYgLzKksejhWPE4SPZX2cvlp90PC3amhKXkOyg4I9emWO034uDqrdKewmJBf2rLJLTw3uLtAA68YmiJmvGRk9hQnQXscwzCOQIjRZH4hzadLsy7nHJVEX3/Fugmku94GObqxRb1qNPgbYS0CG2wkncimzDcQVw5Y4KC+gCwiC4gdsLq1rxXslZZQ31XBgqk8AxQgiWK5m3eSGve76G0dYsLs+Ef2hoJQntm+tC4pQhRJKI=; 5:rAE8dv7x2VYzU1q9nD1yIahPPIPZn4NdT1BStrHbUPhNRIatSIdkJKQugljN+NurJ6sVSEAg1Ps/94+q5PfOrU0Wo497bKsQzkdLUadyAnn5K9Y6Ecf2RQXGTgtc01ZRYWi6k62dab3MNIBOi9EkHfUvY0rkDcP2hbfh1xMkwQk=; 24:0y5ciDq6leJJ5RTrD2EqfYKSX1WjmBB8f/u+4LzWWCO15NEkbYKs9AsEdndwsPjO7j0h51WqU9eQVCYhmqqFM2fNg+R34Jpy6f85Gqk7/3o=; 7:XCkduFaLMU+2C79eTXJIQHWvd2pTL+3mTjokw1ZUU1m/s6RIy8xrKs3BN2Mze6ACGWv/XS59AwqcoIP+EERyXnvKcUAwD2RTS8qYFjXRZIcIxQzafYCH+J3AM3sQqc4xqcvN/d+Vydq+uR5z5YJLVBo2HC8GH6RWpm9vRTnEF/9ejyGdw2CF9h0kQ/aFobSW7mcVH1DG0x4+xiuF/7+wbU5F27PQhpBD/RxzJa7LrcEDy+tgG6wy4DpwDTPajUAf
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 31524a05-2954-4fa8-ab0d-08d51c055e55
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603238); SRVR:BLUPR05MB276;
x-ms-traffictypediagnostic: BLUPR05MB276:
x-exchange-antispam-report-test: UriScan:;
x-microsoft-antispam-prvs: <BLUPR05MB2767E2E2AC0EFFB6F87261DA5450@BLUPR05MB276.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231020)(3002001)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123560025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR05MB276; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR05MB276;
x-forefront-prvs: 04724A515E
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(376002)(39860400002)(346002)(199003)(189002)(8676002)(3280700002)(81166006)(2950100002)(478600001)(82746002)(93886005)(66066001)(81156014)(14454004)(305945005)(230783001)(36756003)(7736002)(3660700001)(2906002)(97736004)(5660300001)(25786009)(83506002)(58126008)(83716003)(316002)(8936002)(106356001)(50986999)(6486002)(76176999)(77096006)(68736007)(54356999)(105586002)(110136005)(3846002)(101416001)(4326008)(229853002)(6116002)(102836003)(6246003)(86362001)(6512007)(99286003)(6506006)(189998001)(33656002)(2900100001)(6436002)(53936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR05MB276; H:BLUPR05MB275.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)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <AAAC787E8C32B444B77F520DE3FDFFE8@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 31524a05-2954-4fa8-ab0d-08d51c055e55
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2017 00:06:12.5098 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB276
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/JelltAez8N9esTF7j9VP_R_Hf3M>
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:06:16 -0000

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