Re: [netmod] Proposal to enhance the YANG tree output

Lou Berger <lberger@labn.net> Tue, 19 September 2017 14:22 UTC

Return-Path: <lberger@labn.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 1FBAB134226 for <netmod@ietfa.amsl.com>; Tue, 19 Sep 2017 07:22:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.4
X-Spam-Level:
X-Spam-Status: No, score=-1.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (768-bit key) header.d=labn.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 aQQYWrTG_Xen for <netmod@ietfa.amsl.com>; Tue, 19 Sep 2017 07:22:23 -0700 (PDT)
Received: from gproxy9-pub.mail.unifiedlayer.com (gproxy9-pub.mail.unifiedlayer.com [69.89.20.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4ED61331C2 for <netmod@ietf.org>; Tue, 19 Sep 2017 07:22:23 -0700 (PDT)
Received: from CMOut01 (unknown [10.0.90.82]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 7F6C61E095A for <netmod@ietf.org>; Tue, 19 Sep 2017 08:22:23 -0600 (MDT)
Received: from box313.bluehost.com ([69.89.31.113]) by CMOut01 with id BSNK1w00G2SSUrH01SNNNU; Tue, 19 Sep 2017 08:22:23 -0600
X-Authority-Analysis: v=2.2 cv=K4VSJ2eI c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=h1BC+oY+fLhyFmnTBx92Jg==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=2JCJgTwv5E4A:10 a=AUd_NHdVAAAA:8 a=wU2YTnxGAAAA:8 a=3zw6wJjOMeqJ6GBKg9cA:9 a=QEXdDO2ut3YA:10 a=Yz9wTY_ffGCQnEDHKrcv:22
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=labn.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=ViglIRa5NusWjBDDystQMZRlMzQmORv/m5RZQnPfUtI=; b=rcYTw6eqp3hHsoNoR1/ILfC0h6 wQiV3HTtZpU0kP63WGvMDz9WCJuK2TjClSKiPxv1PXLI0MXtC3nqhVSGr3NIa4fM/Dy8wpb+McMv6 Sg5PpxlUM0vWPLUHwSNEqpSm7;
Received: from pool-100-15-84-20.washdc.fios.verizon.net ([100.15.84.20]:47886 helo=[IPv6:::1]) by box313.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from <lberger@labn.net>) id 1duJPn-001Xd1-D7; Tue, 19 Sep 2017 08:22:19 -0600
To: Robert Wilton <rwilton@cisco.com>, Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
References: <20170919.132947.358857445863848356.mbj@tail-f.com> <990b8722-7a48-46ce-3f5d-96bc5cb66075@labn.net> <3734864d-9b27-7f61-c638-fd7c656c3692@cisco.com> <20170919.154728.285206235172744617.mbj@tail-f.com> <4f17fbca-6282-6b27-b390-9b85779e96da@cisco.com>
From: Lou Berger <lberger@labn.net>
Message-ID: <cc7c1cad-f394-c3c9-187f-77b7ac8824f2@labn.net>
Date: Tue, 19 Sep 2017 10:22:16 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <4f17fbca-6282-6b27-b390-9b85779e96da@cisco.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - box313.bluehost.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - labn.net
X-BWhitelist: no
X-Source-IP: 100.15.84.20
X-Exim-ID: 1duJPn-001Xd1-D7
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-100-15-84-20.washdc.fios.verizon.net ([IPv6:::1]) [100.15.84.20]:47886
X-Source-Auth: lberger@labn.net
X-Email-Count: 7
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
X-Local-Domain: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/EdnFuWySraZ9oYro65Fx8Mv4VeY>
Subject: Re: [netmod] Proposal to enhance the YANG tree output
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: Tue, 19 Sep 2017 14:22:28 -0000


On 9/19/2017 9:55 AM, Robert Wilton wrote:
>
> On 19/09/2017 14:47, Martin Bjorklund wrote:
>> Robert Wilton <rwilton@cisco.com> wrote:
>>> On 19/09/2017 14:28, Lou Berger wrote:
>>>> On 9/19/2017 7:29 AM, Martin Bjorklund wrote:
>>>>> Lou Berger <lberger@labn.net> wrote:
>>>>>> Martin,
>>>>>>
>>>>>> Speaking as a contributor:
>>>>>>
>>>>>>
>>>>>> On 9/15/2017 7:40 AM, Martin Bjorklund wrote:
>>>>>>> Robert Wilton <rwilton@cisco.com> wrote:
>>>>>>>> On 15/09/2017 11:21, Ladislav Lhotka wrote:
>>>>>>>>> Andy Bierman píše v Čt 14. 09. 2017 v 08:43 -0700:
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Actually I liked the early pyang output that was concise and easy to
>>>>>>>>>> remember.
>>>>>>>>>> The current format gets very cluttered and there are too many little
>>>>>>>>>> symbols
>>>>>>>>>> to remember them all.
>>>>>>>>> I agree.
>>>>>>> Me too.  The current draft adds three new magic symbols: "mp" "@" and
>>>>>>> "/".
>>>>>>>
>>>>>>> "mp" is for a mount point, and it can be generated directly from the
>>>>>>> YANG modules.
>>>>>>>
>>>>>>> Directly under a "mp", "/" and "@" are used to indicate that a node is
>>>>>>> mounted
>>>>>>> or available through a parent reference, respectively.
>>>>>>>
>>>>>>> I actually question the usability of "/" and "@".
>>>>>> I agree that / and @ are something new, and enabled by schema mount.
>>>>>> There have been repeated comments in the RTG WG that there needs to be
>>>>>> some way for vendors to convey what they have implemented with Schema
>>>>>> mount
>>>>> If that's the requirement, using the tree diagram is probably not the
>>>>> best way.  The tree diagram is intended to provide an overview of a
>>>>> given (set of) YANG module(s).
>>>>>
>>>>> A perhaps better way to convey the information is to create a file
>>>>> with an instantiated /schema-mounts tree.
>>>> using what syntax?  JSON and XML really isn't that easy for the
>>>> (human)
>>>> reader to parse.
>>> Perhaps there needs to be multiple versions of the generated tree
>>> output?
>>>
>>> 1) A normative tree diagram that shows the structure of the model.
>>> 2) A subsequent example that demonstrates what it looks like with the
>>> schema mounted modules.  Within the confines of a text document, the
>>> tree format still seems like a reasonable way to illustrate this, and
>>> I would say it is preferable to the verbosity of JSON or XML.
>>>
>>> I note that RFC 8022 includes an overview tree model in section 4 with
>>> some branches pruned, and then the complete representation in an
>>> appendix, which seems like a pragmatic approach.
>> Sure, but the question is about what special symbols we define.  Do we
>> need the extra symbols "/" and "@", and do we agree on what they mean?
> If we agree that tree style output is OK to illustrate the use of schema 
> mount, then I think that draft-ietf-netmod-yang-tree-diagrams could 
> define them, but indicate that they are only used to illustrate how 
> schema mount is used, and would not be seen in a regular YANG tree 
> diagram illustrating the structure of a YANG module.  

This seems like a reasonable compromise to me, and not a major change to
the draft.

Martin, what do you think?

Lou

> The alternative 
> might be that the RFCs that uses them defines what '/' and '@' mean for 
> that specific example.
>
> As for what the precise definition of '/' and '@' should be, I'm not 
> sure.  I think that you and Lou have a better handle on that ;-)
>
> Thanks,
> Rob
>
>
>>
>> /martin
>