Re: [netmod] xpaths and Wrapping Long Lines - draft-ietf-netmod-yang-tree-diagrams-03

Robert Wilton <rwilton@cisco.com> Thu, 21 December 2017 11:14 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 C51B412D837; Thu, 21 Dec 2017 03:14:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.511
X-Spam-Level:
X-Spam-Status: No, score=-14.511 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, 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 YGIJ-s0Ns0V5; Thu, 21 Dec 2017 03:14:54 -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 CDDA11200C1; Thu, 21 Dec 2017 03:14:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1080; q=dns/txt; s=iport; t=1513854894; x=1515064494; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=/T+MTMP3l25M6U4VOqHS5fL0j1jZp4yPMEHU+CsjDCs=; b=F4PNuCiiT2z7DL80/ZY87DnAVsw0cBOL5mC1jUJyou3kQ3piXwM5hS4s gN2iBj+A8noE7viWmW/qVhQ5YDNWRmOXsGA83/Rl+i3U6LyOqpwoyfI4H 6rQtd3DfRKUy00rEQ1VMOPMsIMyi9hpXNlvDQiMv6vl+Lc9IuJxbZLQjP Y=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D4AQBxljta/xbLJq1cGQEBAQEBAQEBA?= =?us-ascii?q?QEBAQcBAQEBAYUYhC2LGI92J5k+CoU7AoULFAEBAQEBAQEBAWsohSMBAQEBAgE?= =?us-ascii?q?jFVELDgoCAiYCAlcGAQwIAQGKHwika4Inim0BAQEBAQEBAQEBAQEBAQEBAQEgg?= =?us-ascii?q?Q+CcINoghIMgnmINYJlBaNIlS+MGIdijnqIBYE7NiKBTzIaCBsVPIIqgwiBTkG?= =?us-ascii?q?KLgEBAQ?=
X-IronPort-AV: E=Sophos;i="5.45,435,1508803200"; d="scan'208";a="1011438"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Dec 2017 11:14:52 +0000
Received: from [10.63.23.84] (dhcp-ensft1-uk-vla370-10-63-23-84.cisco.com [10.63.23.84]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id vBLBEpe2014807; Thu, 21 Dec 2017 11:14:52 GMT
To: Martin Bjorklund <mbj@tail-f.com>, lhotka@nic.cz, netmod@ietf.org, draft-ietf-netmod-yang-tree-diagrams@ietf.org
References: <45E0BE8A-DA0B-459E-9757-C9817912E473@gmx.com> <1513852135.9539.15.camel@nic.cz> <20171221.113947.2011578475461538770.mbj@tail-f.com> <20171221104328.ssex3bvj5zuxsjeo@elstar.local>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <b9cb2a7f-6555-650e-55b1-e6751af512ca@cisco.com>
Date: Thu, 21 Dec 2017 11:14:51 +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: <20171221104328.ssex3bvj5zuxsjeo@elstar.local>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/fROo1OL3e-zm6dU-Z_XgXp72z4g>
Subject: Re: [netmod] xpaths and Wrapping Long Lines - draft-ietf-netmod-yang-tree-diagrams-03
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, 21 Dec 2017 11:14:56 -0000


On 21/12/2017 10:43, Juergen Schoenwaelder wrote:
> On Thu, Dec 21, 2017 at 11:39:47AM +0100, Martin Bjorklund wrote:
>
>> But this is in the YANG source; I think Ian asked about the tree
>> diagram syntax.  Maybe the corresponding syntax in the tree diagram
>> could be simply:
>>
>> augment /nat:nat/nat:instances/nat:instance
>>          /nat:mapping-table/nat:mapping-entry:
> Works for me.
This is a trivial thing, but I would probably outdent or indent the 
second and subsequent lines to help it seem like one string rather than 
a list of strings.

E.g. perhaps:

augment /nat:nat/nat:instances/nat:instance
           /nat:mapping-table/nat:mapping-entry:

Or

augment /nat:nat/nat:instances/nat:instance
     /nat:mapping-table/nat:mapping-entry:

Thanks,
Rob


>   
>> Or even simpler, maybe we can say that any string in the tree diagram
>> syntax can follow the YANG string rules.
> The YANG string rules are for machines to get the parsing right. Since
> the tree diagrams are for humans, the less noise the better.
>
> /js
>