Re: [netmod] Proposal to enhance the YANG tree output
Joe Clarke <jclarke@cisco.com> Thu, 14 September 2017 16:32 UTC
Return-Path: <jclarke@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 BB118133045 for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 09:32:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.521
X-Spam-Level:
X-Spam-Status: No, score=-14.521 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, SPF_PASS=-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 cHfu-4YpQ8UW for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 09:32:25 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDF05132D47 for <netmod@ietf.org>; Thu, 14 Sep 2017 09:32:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3390; q=dns/txt; s=iport; t=1505406744; x=1506616344; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=LjkFH+70vODQgL2GQevfXdqAWZvwZfv940IoDh5SsU8=; b=M0mUSa1T6ueMQHJX0LppmfxB+40UsVLAE6Tpjtyw3vFU0nnZ2Vy5U3Of jXesePO8lKK0a53OXhAjFm0b0W9YjRg6Pg4IINFhT5UAlQkeyHXfMkfr3 wDJ14Mk42pMBqSp6VSb46P4vusHlWc6btnHGnhZ0PVNnfbD4jNo9uE6j2 o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CxAQBtrrpZ/4gNJK1dGQEBAQEBAQEBAQEBBwEBAQEBg1pkbieDd5taCSKYOgoYC4RKTwKEJEMUAQIBAQEBAQEBayiFGAEBAQECAQEBIQQLATsLEAkCGAICIwMCAicfEQYBDAYCAQGKJggQjjCdZoFtOosyAQEBAQEBAQEBAQEBAQEBAQEBAQEBHYEOgh2CAoFQgg4LgnKIC4JgBYwnhQePVIdajHiCbohnhyGVMYE5NiGBDVMkFUqFGRyCAyQ2iG0BAQE
X-IronPort-AV: E=Sophos;i="5.42,394,1500940800"; d="scan'208";a="298420297"
Received: from alln-core-3.cisco.com ([173.36.13.136]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2017 16:32:23 +0000
Received: from [10.118.87.94] (rtp-jclarke-nitro13.cisco.com [10.118.87.94]) by alln-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id v8EGWNqV032095; Thu, 14 Sep 2017 16:32:23 GMT
To: Balazs Lengyel <balazs.lengyel@ericsson.com>, Andy Bierman <andy@yumaworks.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
References: <9d84d068-29ba-8e89-394f-b7f6a5272adc@cisco.com> <CABCOCHQZ4zJ3p_4oB1Pu=1H60btzrccqTx7rUtsRsF0reXgrYw@mail.gmail.com> <eff1ce64-f1b8-64e2-eb09-1d2500f6f23b@cisco.com> <996db3ee-c3f0-a8f3-8c94-8471a4ce8dc0@ericsson.com>
From: Joe Clarke <jclarke@cisco.com>
Organization: Cisco
Message-ID: <bd5a0001-9344-badd-e595-6e63b7630d20@cisco.com>
Date: Thu, 14 Sep 2017 12:32:23 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
MIME-Version: 1.0
In-Reply-To: <996db3ee-c3f0-a8f3-8c94-8471a4ce8dc0@ericsson.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3CLmAftQjjlXFwytE5e1ZeeJ3v8>
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: Thu, 14 Sep 2017 16:32:27 -0000
On 9/14/17 12:13, Balazs Lengyel wrote: > Did you consider to have a concise and a verbose tree output selected by > an option? I did. I wanted to get some broader feedback, but I figured people would want something like --tree-print-expanded-types or the like. Joe > > regards Balazs > > > On 2017-09-14 17:58, Joe Clarke wrote: >> On 9/14/17 11:43, Andy Bierman wrote: >>> 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 just went with text for these changes. Yes, it adds more verbiage to >> the output, but it doesn't add any cryptic symbols; plus I think it >> makes it easier to comprehend the types. >> >> Joe >> >>> >>> Andy >>> >>> >>> On Thu, Sep 14, 2017 at 8:33 AM, Joe Clarke <jclarke@cisco.com >>> <mailto:jclarke@cisco.com>> wrote: >>> >>> I've been hacking on pyang, and I changed tree.py to add the >>> enum values >>> for enumeration types and identiyref bases for identityref >>> types. Here >>> is an example: >>> >>> module: yang-catalog >>> +--rw catalog >>> +--rw modules >>> | +--rw module* [name revision organization] >>> | +--rw name yang:yang-identifier >>> | +--rw revision union >>> | +--rw organization string >>> | +--rw ietf >>> | | +--rw ietf-wg? string >>> | +--rw namespace inet:uri >>> | +--rw schema? inet:uri >>> | +--rw generated-from? enumeration [mib, code, >>> not-applicable, native] >>> | +--rw maturity-level? enumeration [ratified, >>> adopted, initial, not-applicable] >>> ... >>> +--rw protocols >>> | +--rw protocol* [name] >>> | +--rw name >>> identityref -> protocol >>> ... >>> >>> My questions are: >>> >>> 1. Is this useful? >>> >>> 2. If so, can this be added to pyang (happy to submit a PR) and >>> draft-ietf-netmod-yang-tree-diagrams? >>> >>> 3. What changes to the output format would you recommend? >>> >>> Thanks. >>> >>> Joe >>> >>> _______________________________________________ >>> netmod mailing list >>> netmod@ietf.org <mailto:netmod@ietf.org> >>> https://www.ietf.org/mailman/listinfo/netmod >>> <https://www.ietf.org/mailman/listinfo/netmod> >>> >>> >> _______________________________________________ >> netmod mailing list >> netmod@ietf.org >> https://www.ietf.org/mailman/listinfo/netmod >
- Re: [netmod] Proposal to enhance the YANG tree ou… Xufeng Liu
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- [netmod] Proposal to enhance the YANG tree output Joe Clarke
- Re: [netmod] Proposal to enhance the YANG tree ou… Andy Bierman
- Re: [netmod] Proposal to enhance the YANG tree ou… Joe Clarke
- Re: [netmod] Proposal to enhance the YANG tree ou… Balazs Lengyel
- Re: [netmod] Proposal to enhance the YANG tree ou… Joe Clarke
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Joe Clarke
- Re: [netmod] Proposal to enhance the YANG tree ou… Ladislav Lhotka
- Re: [netmod] Proposal to enhance the YANG tree ou… Robert Wilton
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Ladislav Lhotka
- Re: [netmod] Proposal to enhance the YANG tree ou… Juergen Schoenwaelder
- Re: [netmod] Proposal to enhance the YANG tree ou… Benoit Claise
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Juergen Schoenwaelder
- Re: [netmod] Proposal to enhance the YANG tree ou… Robert Wilton
- Re: [netmod] Proposal to enhance the YANG tree ou… Juergen Schoenwaelder
- Re: [netmod] Proposal to enhance the YANG tree ou… Joe Clarke
- Re: [netmod] Proposal to enhance the YANG tree ou… Robert Wilton
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Juergen Schoenwaelder
- Re: [netmod] Proposal to enhance the YANG tree ou… Acee Lindem (acee)
- Re: [netmod] Proposal to enhance the YANG tree ou… t.petch
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Robert Wilton
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Robert Wilton
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Juergen Schoenwaelder
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Ladislav Lhotka
- Re: [netmod] Proposal to enhance the YANG tree ou… t.petch
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Lou Berger
- Re: [netmod] Proposal to enhance the YANG tree ou… Yingzhen Qu
- Re: [netmod] Proposal to enhance the YANG tree ou… Acee Lindem (acee)
- Re: [netmod] Proposal to enhance the YANG tree ou… Martin Bjorklund
- Re: [netmod] Proposal to enhance the YANG tree ou… Xufeng Liu