Re: [netmod] stable reference for tree diagram notation

Robert Wilton <rwilton@cisco.com> Mon, 13 March 2017 18:24 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 4252F1299E2 for <netmod@ietfa.amsl.com>; Mon, 13 Mar 2017 11:24:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.522
X-Spam-Level:
X-Spam-Status: No, score=-14.522 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, 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 3Nd9hOnkYhs7 for <netmod@ietfa.amsl.com>; Mon, 13 Mar 2017 11:24:04 -0700 (PDT)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 565921294ED for <netmod@ietf.org>; Mon, 13 Mar 2017 11:24:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1623; q=dns/txt; s=iport; t=1489429444; x=1490639044; h=subject:to:references:cc:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=JXsU5NbJNU1p/HEXKO8U5ZJKvVWuXzT5q0YBZZettP4=; b=m8s4P6M2DPVrpmHf8o6YdILlGiNLhHh7gjQW2sPagLTRqfVrI3OgGiYe 4Xa+GD1B5Eg6BYNCpo1fEkIUZyz1WHD80NdH7MszKFaFWBsnEH+UMdzgc FWz+0/gNqoJzK1Pi/nFeEjdC7KF7BSWV2gszUhh91o60MOZvC/Feu3o87 c=;
X-IronPort-AV: E=Sophos;i="5.36,160,1486425600"; d="scan'208";a="692965700"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Mar 2017 18:24:02 +0000
Received: from [10.63.23.115] (dhcp-ensft1-uk-vla370-10-63-23-115.cisco.com [10.63.23.115]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id v2DIO2ru012018; Mon, 13 Mar 2017 18:24:02 GMT
To: Martin Bjorklund <mbj@tail-f.com>, acee@cisco.com
References: <271CED23-8655-45A8-8E05-3ABD460871BD@juniper.net> <20170308193434.GA10080@elstar.local> <D4E9D4E5.A12DC%acee@cisco.com> <20170311.224951.2245774412799352894.mbj@tail-f.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <46dc5cf5-87bc-c77c-0aaa-3b7fb73b7f30@cisco.com>
Date: Mon, 13 Mar 2017 18:24:02 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <20170311.224951.2245774412799352894.mbj@tail-f.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/EsJJ28l1X0OLAccpI4euDd06_pk>
Cc: netmod@ietf.org
Subject: Re: [netmod] stable reference for tree diagram notation
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Mon, 13 Mar 2017 18:24:06 -0000

Hi Martin,

It looks like it needs a further tweak to also wrap augments.  I just 
tried (with the latest master off github) and hasn't wrapped the augment 
line.

E.g.

module: ietf-if-l3-vlan
   augment 
/if:interfaces/if:interface/if-cmn:encapsulation/if-cmn:encaps-type:
     +--:(vlan)
        +--rw vlan
           +--rw tag* [index]
              +--rw index        uint8
              +--rw dot1q-tag
                 +--rw tag-type    dot1q-tag-type
                 +--rw vlan-id     ieee:vlanid

Thanks,
Rob


On 11/03/2017 21:49, Martin Bjorklund wrote:
> "Acee Lindem (acee)" <acee@cisco.com> wrote:
>> Hi Juergen,
>>
>> On 3/8/17, 2:34 PM, "netmod on behalf of Juergen Schoenwaelder"
>> <netmod-bounces@ietf.org on behalf of
>> j.schoenwaelder@jacobs-university.de> wrote:
>>
>>> On Wed, Mar 08, 2017 at 06:56:20PM +0000, Kent Watsen wrote:
>>>> This way, reader can focus more quickly on the diffs, but also this
>>>> likely mimics what happened in reality (start with `pyang -f tree`
>>>> and then manually edit from there).  What do you think?
>>>>
>>> Manually edited tree diagrams? I hope not.
>> I frequently have to manually edit the pyang-generated trees to get them
>> to fit in the xml2rfc output. Is there a work around for this that I don¹t
>> know about?
> In the latest pyang, I have added --tree-line-length.  Use:
>
>    pyang -f -tree --tree-line-length 69 ...
>
> to fit RFCs.
>
>
> /martin
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> .
>