[netmod] tree diagrams - flags
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 21 March 2017 10:25 UTC
Return-Path: <j.schoenwaelder@jacobs-university.de>
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 0C6841296C5 for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 03:25:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-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 51SdR0_aLFJV for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 03:25:32 -0700 (PDT)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A41A41296C8 for <netmod@ietf.org>; Tue, 21 Mar 2017 03:25:30 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 748E3793 for <netmod@ietf.org>; Tue, 21 Mar 2017 11:25:29 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id e-_Rcvpb8RBy for <netmod@ietf.org>; Tue, 21 Mar 2017 11:25:28 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS for <netmod@ietf.org>; Tue, 21 Mar 2017 11:25:29 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id F10F120038 for <netmod@ietf.org>; Tue, 21 Mar 2017 11:25:28 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id liORV6ZLai0m; Tue, 21 Mar 2017 11:25:28 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 7BBA720036; Tue, 21 Mar 2017 11:25:28 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 451DE3EF0F43; Tue, 21 Mar 2017 11:25:33 +0100 (CET)
Date: Tue, 21 Mar 2017 11:25:33 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: netmod@ietf.org
Message-ID: <20170321102533.GC35449@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: netmod@ietf.org
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+"
Content-Disposition: inline
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ByB44AdsizlXWShy3vXc0AxOCJE>
Subject: [netmod] tree diagrams - flags
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, 21 Mar 2017 10:25:34 -0000
Hi, if we want to standardize tree diagrams, we may want to take a more critical look at them, in particular the flags (that were created ad-hoc and in resemblance to MIB tree diagrams). pyang --tree-help says: <flags> is one of: rw for configuration data ro for non-configuration data -x for rpcs and actions -n for notifications This is (a) incomlete and (b) somewhat confusing since ct does not equate to readwrite. I am attaching a sample yang file and here is the output pyang 1.7.1 produces: module: tree-sample +--rw config-true-container | +--rw param? string +--ro config-false-container | +--ro value? string +--rw inline-action | +---x action | +---- oops? string | +---w input | | +---w in? string | +--ro output | +--ro out? string +--rw inline-notification +---n notification +---- duration? string rpcs: +---x rpc +---w input | +---w in? string +--ro output | +--ro out? string +--ro oops? string notifications: +---n notification +--ro boom? string I think a better usage of two letter flags would have been this (since it more naturally aligns with what the YANG definition says): <flags> is one of: ct for configuration data cf for non-configuration data x- for rpcs and actions xi for rpc or action input xo for rpc or action output n- for notifications nt for notification tree (this is I think the term 7950 uses) module: tree-sample +--ct config-true-container | +--ct param? string +--cf config-false-container | +--cf value? string +--ct inline-action | +--x- action | +--xi input | | +--xi in? string | +--xo output | +--xo out? string +--ct inline-notification +--n- notification +--nt duration? string rpcs: +--x- rpc +--xi input | +--xi in? string +--ro output +--xo out? string notifications: +--n- notification +--nt boom? string (And I think the oops leafs should have triggered an error.) /js -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
- Re: [netmod] tree diagrams - flags Martin Bjorklund
- Re: [netmod] tree diagrams - flags Thomas Morin
- [netmod] tree diagrams - flags Juergen Schoenwaelder
- Re: [netmod] tree diagrams - flags Ladislav Lhotka
- Re: [netmod] tree diagrams - flags Juergen Schoenwaelder
- Re: [netmod] tree diagrams - flags Robert Wilton
- Re: [netmod] tree diagrams - flags Ladislav Lhotka
- Re: [netmod] tree diagrams - flags Dale R. Worley
- Re: [netmod] tree diagrams - flags Martin Bjorklund
- Re: [netmod] tree diagrams - flags Juergen Schoenwaelder
- Re: [netmod] tree diagrams - flags Ladislav Lhotka
- Re: [netmod] tree diagrams - flags Juergen Schoenwaelder
- Re: [netmod] tree diagrams - flags Phil Shafer
- Re: [netmod] tree diagrams - flags Dale R. Worley
- Re: [netmod] tree diagrams - flags Phil Shafer
- Re: [netmod] tree diagrams - flags Martin Bjorklund
- Re: [netmod] tree diagrams - flags Dale R. Worley