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

Robert Wilton <rwilton@cisco.com> Wed, 17 January 2018 10:11 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 2E29F126E64 for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 02:11:01 -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 NwWJpP1fpyPN for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 02:10:59 -0800 (PST)
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 480961242F7 for <netmod@ietf.org>; Wed, 17 Jan 2018 02:10:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2707; q=dns/txt; s=iport; t=1516183859; x=1517393459; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=mk02hXcxkC79g9wV8rGHQ4eUL1RGptN9mpobzDEkL0M=; b=dW83zEwzOeb0UvONNgr4t8jcOxl8udLSvWz19CNsf4lJYQYtzEOFu1Q1 dB+Wkog0Dh7A7Af9FSd4qaBjl0kVNdRWFKQdv8eq71v8gPVEvWghcJn14 raSg7FAQ7EvYgoYy6qjXEA+9aPjGFZRoWMsrCte95+MflvldpTWTbDpLE U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0BzAQCBIF9a/xbLJq1bGQEBAQEBAQEBAQEBAQcBAQEBAYQndCeEE4sYj3CZRAoYC4RJTwKFIxQBAQEBAQEBAQFrKIUjAQEBBAEBIQ8BBTYLDAQLDgoCAiYCAicwBgEMBgIBAReKGBCmFoIniU8BAQEBAQEBAQEBAQEBAQEBAQEBAQEYBYEPhxmBaSmDBYMvAQEChQaCZQWjapVRjCWHbI8fiAqBPDYigVAyGggbFT2CKoRXQTeLawEBAQ
X-IronPort-AV: E=Sophos;i="5.46,372,1511827200"; d="scan'208";a="1444151"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 10:10:57 +0000
Received: from [10.63.23.131] (dhcp-ensft1-uk-vla370-10-63-23-131.cisco.com [10.63.23.131]) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id w0HAAvBY011958; Wed, 17 Jan 2018 10:10:57 GMT
To: Martin Bjorklund <mbj@tail-f.com>, alexander.clemm@huawei.com
Cc: vladimir@transpacket.com, netmod@ietf.org
References: <20180116.164053.2123534827829006518.mbj@tail-f.com> <e63efa9f-3114-d59d-e1d8-e62602a830c5@cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB145@sjceml521-mbx.china.huawei.com> <20180117.084318.1633996450082512639.mbj@tail-f.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <52dd8202-605b-0dcb-2a2e-6f38a44ef72c@cisco.com>
Date: Wed, 17 Jan 2018 10:10:57 +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: <20180117.084318.1633996450082512639.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/MB2xkGSSq5NrErDLCsdIfVRBXL0>
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:11:17 -0000


On 17/01/2018 07:43, Martin Bjorklund wrote:
> Alexander Clemm <alexander.clemm@huawei.com> wrote:
>> +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.  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.
> The last sentence summarizes my personal view.  I prefer (1), followed
> by (2).
OK, so the "Providing some guidance for how to represent the tree is 
good" is along the lines of what I was thinking for the "algorithm" 
would be for 2.

E.g. something along the lines of:
"Arbitrary whitespace is allowed between any of the whitespace separated 
fields (e.g. <opts> and <type>).  Additional whitespace may be used to 
column align fields (e.g. within a list or container) to improve 
readability".

But just saying implementations can use arbitrary whitespace is also 
fine with me.  I certainly err on the side of not being overly 
prescriptive on this ..

I'm not really a fan of the comparing tree output as a method of 
verifying a YANG parser idea.

Thanks,
Rob


>
>
> /martin
>
>> --- 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
>>>>
>>>> _______________________________________________
>>>> netmod mailing list
>>>> netmod@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/netmod
>>>> .
>>>>
>>> _______________________________________________
>>> netmod mailing list
>>> netmod@ietf.org
>>> https://www.ietf.org/mailman/listinfo/netmod
> .
>