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

Joe Clarke <> Fri, 15 September 2017 13:50 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id B17AF132396 for <>; Fri, 15 Sep 2017 06:50:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -14.021
X-Spam-Status: No, score=-14.021 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, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id uD70moeuctCv for <>; Fri, 15 Sep 2017 06:50:05 -0700 (PDT)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 78C4612421A for <>; Fri, 15 Sep 2017 06:50:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=918; q=dns/txt; s=iport; t=1505483405; x=1506693005; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=x/eyxUqmPqY1ZxajzgqXjdr2SYXq7IdT0ym8MH9B/iY=; b=FlKfndHUqN8hQj0iAsh1d9kh6Ogl5Hz6d4wtfujd3RybBd8FvVxZnmPb BLDTbi559rOOk+xele4iVCED0ut9RuHDWXYu3e8zcb/1JXpACYHclXYJo 5j21AlugKRhdSnp+qGUpK8D0itEjcDJ0Bz6kCpsz9vy1WUNCwLZ3MwCmM 4=;
X-IronPort-AV: E=Sophos;i="5.42,397,1500940800"; d="scan'208";a="3968425"
Received: from ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Sep 2017 13:50:04 +0000
Received: from [] ( []) by (8.14.5/8.14.5) with ESMTP id v8FDo4gB009447; Fri, 15 Sep 2017 13:50:04 GMT
To: Benoit Claise <>, Martin Bjorklund <>,,
References: <> <> <> <> <> <20170915132128.diib4wxp2vg6yqi4@elstar.local>
From: Joe Clarke <>
Organization: Cisco
Message-ID: <>
Date: Fri, 15 Sep 2017 09:50:04 -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: <20170915132128.diib4wxp2vg6yqi4@elstar.local>
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <>
Subject: Re: [netmod] Proposal to enhance the YANG tree output
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 15 Sep 2017 13:50:07 -0000

On 9/15/17 09:21, Juergen Schoenwaelder wrote:
> On Fri, Sep 15, 2017 at 02:54:31PM +0200, Benoit Claise wrote:
>> Now, if you are already a YANG expert, I guess you don't use the
>> tree output much.
> I think this has nothing to do with YANG experience. The intention of
> the tree format was to provide a concise overview of the structure of
> the schema tree. If we start to include type specifics that can get
> very detailed, the diagrams loose their value.

I agree that clutter is bad.  I had the same reservation, but I am also
working with models and sharing information with people where a tree
that has a _bit_ more information would be useful.

I agree that showing this by default will be messy in some cases.  And
maybe this has moved to a question more for you, Martin, in pyang's
GitHub channel.  But if this output were put behind an option, would you
entertain a PR?