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

Robert Wilton <rwilton@cisco.com> Tue, 19 September 2017 13:55 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 6B1A4134326 for <netmod@ietfa.amsl.com>; Tue, 19 Sep 2017 06:55:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 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, 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 s7rnwrwmXjmz for <netmod@ietfa.amsl.com>; Tue, 19 Sep 2017 06:55:22 -0700 (PDT)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 34BDB132D51 for <netmod@ietf.org>; Tue, 19 Sep 2017 06:55:22 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3332; q=dns/txt; s=iport; t=1505829322; x=1507038922; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=mMhqzBZFUpB9Cfbf1GmjYMsdEXeYoKuPL8QfFYhXRbw=; b=dA1y/HTVv8H4zAQHa+1xgfIQSZoNqTCCEc91NcJcEdtDl3mD3o/I6vsO gNG9ngzbJFeV1K+AF0VIweODCevBhNHQv5TsIoqKmuaijUhsEYgnh9xMc K9Bjk7yEipO7g4MvlnxPAmNVlbT1FiLfYPeLNere3zLFNqfR6zJ4HnHTf M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CMAQCCHsFZ/xbLJq1cGQEBAQEBAQEBAQEBBwEBAQEBhSwng3WLFJBMCSKWJIISCoU7AoUYFwECAQEBAQEBAWsohRkBBSMPAQVBEAkCDgoCAiYCAlcGDQYCAQGKL40VnWaCJ4skAQEBAQEBAQEBAQEBAQEBASKBDoIdg1KCDguBZYENiAuCYAEEoQyUVotXhyONYIdXgTkhAjSBDTIhCBwVh2Y/NohtAQEB
X-IronPort-AV: E=Sophos;i="5.42,418,1500940800"; d="scan'208";a="657583718"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2017 13:55:20 +0000
Received: from [10.63.23.66] (dhcp-ensft1-uk-vla370-10-63-23-66.cisco.com [10.63.23.66]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id v8JDtKl6006333; Tue, 19 Sep 2017 13:55:20 GMT
To: Martin Bjorklund <mbj@tail-f.com>
Cc: lberger@labn.net, 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>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <4f17fbca-6282-6b27-b390-9b85779e96da@cisco.com>
Date: Tue, 19 Sep 2017 14:55:19 +0100
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: <20170919.154728.285206235172744617.mbj@tail-f.com>
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/gNdeJv-X2OigJEaa12PPPYxRp8w>
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 13:55:24 -0000


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.  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