Re: [netmod] Proposal to enhance the YANG tree output
Yingzhen Qu <yingzhen.qu@huawei.com> Tue, 26 September 2017 17:28 UTC
Return-Path: <yingzhen.qu@huawei.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 523621342AD for <netmod@ietfa.amsl.com>; Tue, 26 Sep 2017 10:28:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.22
X-Spam-Level:
X-Spam-Status: No, score=-4.22 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 hn_-f9tWnz4i for <netmod@ietfa.amsl.com>; Tue, 26 Sep 2017 10:28:36 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 742C613428A for <netmod@ietf.org>; Tue, 26 Sep 2017 10:28:35 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml704-cah.china.huawei.com) ([172.18.7.190]) by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DPI82681; Tue, 26 Sep 2017 17:28:33 +0000 (GMT)
Received: from SJCEML701-CHM.china.huawei.com (10.208.112.40) by lhreml704-cah.china.huawei.com (10.201.108.45) with Microsoft SMTP Server (TLS) id 14.3.301.0; Tue, 26 Sep 2017 18:28:32 +0100
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.175]) by SJCEML701-CHM.china.huawei.com ([169.254.3.215]) with mapi id 14.03.0301.000; Tue, 26 Sep 2017 10:28:25 -0700
From: Yingzhen Qu <yingzhen.qu@huawei.com>
To: "Acee Lindem (acee)" <acee@cisco.com>, Ladislav Lhotka <lhotka@nic.cz>, "netmod@ietf.org" <netmod@ietf.org>, Martin Bjorklund <mbj@tail-f.com>
Thread-Topic: [netmod] Proposal to enhance the YANG tree output
Thread-Index: AQHTLW7wdmy8RMDQEUSny+0Ug5iEtaK0+t4AgAE4cwCAADv9AIAP4kCAgAEpEjA=
Date: Tue, 26 Sep 2017 17:28:24 +0000
Message-ID: <594D005A3CB0724DB547CF3E9A9E810BF15DC4@sjceml521-mbx.china.huawei.com>
References: <9d84d068-29ba-8e89-394f-b7f6a5272adc@cisco.com> <CABCOCHQZ4zJ3p_4oB1Pu=1H60btzrccqTx7rUtsRsF0reXgrYw@mail.gmail.com> <1505470900.18681.0.camel@nic.cz> <D5E153B9.C80CF%acee@cisco.com> <D5EEA5E2.C9623%acee@cisco.com>
In-Reply-To: <D5EEA5E2.C9623%acee@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.212.245.200]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.59CA8E41.0126, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.1.175, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: 042b507eb9bb95e723f00ed33727c1a5
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3F2xIrvGJWT41N8b639HlsQB0NE>
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, 26 Sep 2017 17:28:38 -0000
Hi all, I personally like to keep the ‘@’ and the '/' in the tree output. As we know that a tree may not catch all what a module is trying to do, but it can help users to quickly get an idea of the module's overall architecture etc. The '@' and the '/' is very helpful in order to understand all the mounting points. Thanks, Yingzhen -----Original Message----- From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Acee Lindem (acee) Sent: Monday, September 25, 2017 9:30 AM To: Ladislav Lhotka <lhotka@nic.cz>; netmod@ietf.org; Martin Bjorklund <mbj@tail-f.com> Subject: Re: [netmod] Proposal to enhance the YANG tree output Martin, Lada, et al, While I don’t think we need additional annotations that Joe had prototyped (at least not as the default), I strongly believe we need to keep the ‘@‘ and ‘/‘ in the tree output for schema mount. While the former enhancement provided details, the schema mount tree designations are every bit as important as knowing, for example, whether or not a schema leaf is a presence node. Thanks, Acee On 9/15/17, 9:56 AM, "Acee Lindem (acee)" <acee@cisco.com> wrote: >+1 - Also it is hard enough to format the tree output to fit in a draft >w/o further annotations (even with —-tree-line-length). >Thanks, >Acee > > >On 9/15/17, 6:21 AM, "netmod on behalf of Ladislav Lhotka" ><netmod-bounces@ietf.org on behalf of lhotka@nic.cz> 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. >> >>Lada >> >>> >>> >>> Andy >>> >>> >>> On Thu, Sep 14, 2017 at 8:33 AM, Joe Clarke <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 >>> > https://www.ietf.org/mailman/listinfo/netmod >>> >>> _______________________________________________ >>> netmod mailing list >>> netmod@ietf.org >>> https://www.ietf.org/mailman/listinfo/netmod >>-- >>Ladislav Lhotka >>Head, CZ.NIC Labs >>PGP Key ID: 0xB8F92B08A9F76C67 >> >>_______________________________________________ >>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
- 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