Re: [netmod] tree diagrams - flags

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 21 March 2017 11:32 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 B2CD21296FF for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 04:32:46 -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 DmoC14kYq_A8 for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 04:32:45 -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 DD42F1296FA for <netmod@ietf.org>; Tue, 21 Mar 2017 04:32:44 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id B50A6AF5; Tue, 21 Mar 2017 12:32:43 +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 NjAbtr0sxtjv; Tue, 21 Mar 2017 12:32:42 +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; Tue, 21 Mar 2017 12:32:43 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 4A47A20038; Tue, 21 Mar 2017 12:32:43 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id AiSIAu7W7JLD; Tue, 21 Mar 2017 12:32:43 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id D772820036; Tue, 21 Mar 2017 12:32:42 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 1647B3EF11D9; Tue, 21 Mar 2017 12:32:46 +0100 (CET)
Date: Tue, 21 Mar 2017 12:32:46 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
Message-ID: <20170321113246.GA35771@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Martin Bjorklund <mbj@tail-f.com>, netmod@ietf.org
References: <20170321102533.GC35449@elstar.local> <20170321.113629.1388013607646336532.mbj@tail-f.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20170321.113629.1388013607646336532.mbj@tail-f.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/EhLmkfjZh6fasEjN8kCnZl4h-xE>
Subject: Re: [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 11:32:47 -0000

On Tue, Mar 21, 2017 at 11:36:29AM +0100, Martin Bjorklund wrote:

> > 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)
> 
> I'm fine with this, but perhaps use "no" for notification data - "t"
> means "true" in "ct".

I once had nd (notification data) but then in the last moment moved
to nt since 7950 uses the term notification tree...
 
> Also, in a grouping like this:
> 
>  grouping my-grouping {
>     leaf param { type string; }
>   }
> 
> pyang prints this as:
> 
>   my-grouping
>       +---- param?   string
> 
> i.e., w/o any flags.
>

This makes sense, it just needs to get documented...

> > (And I think the oops leafs should have triggered an error.)
> 
> They did.  To stderr.

Oops, my fault.

/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/>