Re: [netmod] Proposal to enhance the YANG tree output

"Acee Lindem (acee)" <acee@cisco.com> Mon, 25 September 2017 16:30 UTC

Return-Path: <acee@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 B0FBA1344D4 for <netmod@ietfa.amsl.com>; Mon, 25 Sep 2017 09:30:12 -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 deevAnmpVrHd for <netmod@ietfa.amsl.com>; Mon, 25 Sep 2017 09:30:07 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BD33C1344D5 for <netmod@ietf.org>; Mon, 25 Sep 2017 09:30:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4434; q=dns/txt; s=iport; t=1506357005; x=1507566605; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=uzLPC+Cfe4nf1VLKx+q4V/zCpho7F3aI75CsJlnwvgA=; b=TDvRLva+8irDGq5wUEFByDcdGnSODQ7RiDVSHU6LumXZu8pBCotohIDr 48M29bcrzUyqjM1MQqEPeEWu3BslTZGnufFQRZPFhqg81Fsic/I1TJDSr 6Y3xAfzjX/oroH75VUzOHFz950tXfAdyQfydQ4yqLTQfDcF7usry3N0WZ M=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CbAQCdLslZ/5RdJa1cGQEBAQEBAQEBAQEBBwEBAQEBg1pkbicHg2+aG4F2mDwKGAuESU8CGoQdVwECAQEBAQECayiFGQEBAQMBASEEDTobAgEGAhgCAiYCAgIlCxUQAgQBEoozEIoMnWaBbTqLGAEBAQEBAQEBAQEBAQEBAQEBAQEBAR2BDoIdggKGYIUDgxOCYAWMMoUJj2QCh1uMf4JukBiVGQIRGQGBOAFXgQ54FUmHHXaHCIEQAQEB
X-IronPort-AV: E=Sophos;i="5.42,437,1500940800"; d="scan'208";a="8379378"
Received: from rcdn-core-12.cisco.com ([173.37.93.148]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Sep 2017 16:30:05 +0000
Received: from XCH-RTP-011.cisco.com (xch-rtp-011.cisco.com [64.101.220.151]) by rcdn-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id v8PGU31w024603 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 25 Sep 2017 16:30:04 GMT
Received: from xch-rtp-015.cisco.com (64.101.220.155) by XCH-RTP-011.cisco.com (64.101.220.151) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Mon, 25 Sep 2017 12:30:03 -0400
Received: from xch-rtp-015.cisco.com ([64.101.220.155]) by XCH-RTP-015.cisco.com ([64.101.220.155]) with mapi id 15.00.1320.000; Mon, 25 Sep 2017 12:30:03 -0400
From: "Acee Lindem (acee)" <acee@cisco.com>
To: 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: AQHTLW7ooMSJJm/gdkGnL0U2wTeGA6K0yJQAgAE4cwD///jZAIAP4k6A
Date: Mon, 25 Sep 2017 16:30:03 +0000
Message-ID: <D5EEA5E2.C9623%acee@cisco.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>
In-Reply-To: <D5E153B9.C80CF%acee@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.116.152.196]
Content-Type: text/plain; charset="utf-8"
Content-ID: <8F1491827B9B4E459076913C5236E6E5@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/WZSy3ozGZ89U-WQ8SghpWesY5U0>
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: Mon, 25 Sep 2017 16:30:13 -0000

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
>