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

Andy Bierman <andy@yumaworks.com> Thu, 14 September 2017 15:43 UTC

Return-Path: <andy@yumaworks.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 339E013208E for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 08:43:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 LMvyGgSLUyuz for <netmod@ietfa.amsl.com>; Thu, 14 Sep 2017 08:43:25 -0700 (PDT)
Received: from mail-lf0-x231.google.com (mail-lf0-x231.google.com [IPv6:2a00:1450:4010:c07::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 119AB124239 for <netmod@ietf.org>; Thu, 14 Sep 2017 08:43:25 -0700 (PDT)
Received: by mail-lf0-x231.google.com with SMTP id q132so8173054lfe.5 for <netmod@ietf.org>; Thu, 14 Sep 2017 08:43:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=FH1FCeocC/gz5+8HMkcSovGdrASfnuX1Nx4m7QDzoRA=; b=ht1XJ1+KC3QhRjM4rMAtAe2Yn4u/NNRyajU4eAVdeRugi2om1juE6OaHtc3dwS56pP Stl8byZcqXgCSLvCfvDF9UAAoNJ2TDUlssPhEg7UxxfQc93H/aJR0rY+m2ws4sqh/Vfa GG8GiRpC92/y3b6Do91NLlg60G9aM6srJwtZupX79NVVnmMtmCmX3Wxg7DPFA6KNsqJ7 VVHNsdLwjm3fcExHWwhD+P3eSOJM7UnfWwhYWVhwSnRzqi0Y3ngkvBPcjQKstVagZ51B e/jYNhQue3MHSeANtssK3XBKJkeAU18/BTGO4rauFJ4QnA/vlQFy81394c0i7nkmR10G mfuQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=FH1FCeocC/gz5+8HMkcSovGdrASfnuX1Nx4m7QDzoRA=; b=EUTN6yhMh7rKhYspxKXAOhfD6Z1pvWuBokMgZlHjdPrDuUUhPYb+eykLA8xUHPIelJ EDUJlaLLJa2Rn0s350di22xOhBl58Op5tT6mggtqzghPxpiroe6J8fG6mne4JX6w6eVy rd0dslxhaZEm3G3eF+MQgtg0kvUKgRUFjeD6PziRzHkK39pmTLVcoWJXTUDM2GAI9SV9 G3fwU5wVipqp12mHKs0Q57YDXfFZMD1gRyZOWg+ayDUojwMuX4pAvSA0p6AjOLzMPQJN 7nab6vBmlpBUawLQapn9QaU/BLjQUXi1iug/pJWQH1+x+v+JpmOtbsUCYAxtcimAbkWH T/IA==
X-Gm-Message-State: AHPjjUgNwia37cBl5NSgB/0pyfSD+2/028QD6Re2hq1K14PLmVc0lLvl P4JoBFI+YH6WclIgjq87b3d/EqzOKjyV3cc6RXRZjg==
X-Google-Smtp-Source: AOwi7QDBO00Q5KYuxhxQLsELjhM3WNHnIG+QxPyj3dGRt7IChPEVdzQqSRZsTH3HDRdfvAkZ0pshR6v8apxq32gMvYw=
X-Received: by 10.25.211.14 with SMTP id k14mr8511902lfg.51.1505403803301; Thu, 14 Sep 2017 08:43:23 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.18.41 with HTTP; Thu, 14 Sep 2017 08:43:22 -0700 (PDT)
In-Reply-To: <9d84d068-29ba-8e89-394f-b7f6a5272adc@cisco.com>
References: <9d84d068-29ba-8e89-394f-b7f6a5272adc@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 14 Sep 2017 08:43:22 -0700
Message-ID: <CABCOCHQZ4zJ3p_4oB1Pu=1H60btzrccqTx7rUtsRsF0reXgrYw@mail.gmail.com>
To: Joe Clarke <jclarke@cisco.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a11400d72f08a3005592822fb"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Ovcg1iFEJha_GhB0jhoWlOoRQwo>
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 15:43:27 -0000

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.


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
>