Re: [netmod] WGLC - draft-ietf-netmod-yang-tree-diagrams

Robert Wilton <rwilton@cisco.com> Wed, 17 January 2018 10:44 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 BE66812D94F for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 02:44:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 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, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=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 9DSW3Bup3SKU for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 02:44:20 -0800 (PST)
Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5CC4C12D880 for <netmod@ietf.org>; Wed, 17 Jan 2018 02:44:20 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2926; q=dns/txt; s=iport; t=1516185860; x=1517395460; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=7nOPipfAGYFphzTkyvt2Mny9ZM9fsNgTzY+2yr8oL4E=; b=GYjGvE56yfG1h1D3JFnjhqPzjJcbIV/8zcArKuS7LOwPpowanJzSZ0OX IQDfWuJpo/RdSN1d+EAHNL/bJ68DX1hJV4bmmBhYNSeXLCuVTVeyhrJuN HKfViyLdH2vQyGrw0zw6d58mZ2EYi3CVwSA75qHu14whwkr56yCC9OTRC I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BzAQC4J19a/xbLJq1BGhkBAQEBAQEBAQEBAQEHAQEBAQGEJ3QnhBOLGI9wmUQKI4UYAoUkFAEBAQEBAQEBAWsohSMBAQEDASMPAQVBDAQLFQECAgImAgJXBgEMBgIBAReKEAgQNKVMgieJTwEBAQEBAQEBAQEBAQEBAQEBAQEBARgFgQ+HGYFpKYMFgy8EGYRtgmUFjQaWZJVRjCWHbI8fiAqBPDYiEYE/MhoIGxWCZ4JUHIFnQTcBi2oBAQE
X-IronPort-AV: E=Sophos;i="5.46,372,1511827200"; d="scan'208";a="1450536"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 10:44:18 +0000
Received: from [10.63.23.131] (dhcp-ensft1-uk-vla370-10-63-23-131.cisco.com [10.63.23.131]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id w0HAiIuE009212; Wed, 17 Jan 2018 10:44:18 GMT
To: "t.petch" <ietfc@btconnect.com>, Alexander Clemm <alexander.clemm@huawei.com>, Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
References: <aa7a1449-fd6e-e4c6-7568-41061c09d9f2@transpacket.com> <20180116.115606.561861432247288407.mbj@tail-f.com> <e94d1ed3-e859-3167-501f-ce23e77804df@transpacket.com> <20180116.164053.2123534827829006518.mbj@tail-f.com> <e63efa9f-3114-d59d-e1d8-e62602a830c5@cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB145@sjceml521-mbx.china.huawei.com> <021e01d38f7d$03e80e60$4001a8c0@gateway.2wire.net>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <40145d13-a6aa-feb5-bfb2-b87b236e7700@cisco.com>
Date: Wed, 17 Jan 2018 10:44:18 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <021e01d38f7d$03e80e60$4001a8c0@gateway.2wire.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/5BB_W0_B1HBLM-mUZXvIKPNS6EE>
Subject: Re: [netmod] WGLC - draft-ietf-netmod-yang-tree-diagrams
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: Wed, 17 Jan 2018 10:44:23 -0000

Hi Tom,


On 17/01/2018 09:52, t.petch wrote:
> ----- Original Message -----
> From: "Alexander Clemm" <alexander.clemm@huawei.com>
> Sent: Wednesday, January 17, 2018 2:20 AM
>
>> +1 to (2) as preference, followed by (1).  I don't think (3) is needed
> here.  The purpose is to make this human-readable and provide readers a
> good sense of the overall structure.
>
> <tp>
>
> That's what I thought until Benoit said, and Robert agreed, that
>
> 'In the end, the tree view should be browsed with tooling.'
The text based YANG tree diagram (i.e. covered by this draft) doesn't 
need to be browsable by tooling.  The purpose of these diagrams should 
be to go in text documents to help explain and illustrate (to human 
readers) the structure of a YANG model.

By "In the end, the tree view should be browsed with tooling.", what I 
mean is that I think that tools like YANG catalog will be the long term 
way of interacting with and browsing YANG modules.  For example, the 
link below for the RIP module.

https://www.yangcatalog.org/yang-search/yang_tree.php?module=ietf-rip

This provides an interactive GUI "tree view" of a YANG model, which 
should be structurally equivalent as the text tree diagram, but 
otherwise the information may be represented in a more visual way. This 
will become even more powerful when all of the standard YANG modules are 
available together in a single browsable tree.

Hopefully, that clarifies my previous comment.

Thanks,
Rob

>
> i.e. the tree view should be machine readable after which something is
> produced for human consumption; not a view I share.
>
> Tom Petch
>
>
>     The authoritative specification is still the .yang itself.  Providing
> some guidance for how to represent the tree is good but let's not
> over-engineer this; I believe retaining some flexibility is good.
>> --- Alex
>>
>>> -----Original Message-----
>> ...
>>>> Does anyone else have an opinion on this?  I can see three
>>>> alternatives:
>>>>
>>>>     1) allow any number of addtional spaces
>>>>     2) allow any number of addtional spaces + define a suggested
>>>>        alignment algorithm
>>>>     3) mandate the alignment algorithm
>>> Definition of symbols should be precise/consistent, so that readers
> can
>>> consistently interpret tree diagrams.
>>>
>>> I think that flexibility in layout should be OK, but the draft
> should provide
>>> guideline to ensure the output is readable, and likely to be broadly
> consistent
>>> (since consistency aids readability).
>>>
>>> If the IETF data modeling group is trying to specify text output
> precisely
>>> enough that it can be screen scraped then we may want to consider
> whether
>>> we are focusing on the right solution ;-)
>>>
>>> In summary, (2) is my preference, followed by (1), followed by (3).
>>>
>>> Thanks,
>>> Rob
>>>
>>>>
>>>> /martin
> .
>