Re: [netmod] tree diagrams - flags

Martin Bjorklund <mbj@tail-f.com> Tue, 21 March 2017 13:43 UTC

Return-Path: <mbj@tail-f.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 22CDF12948A for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 06:43:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-0.001, SPF_PASS=-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 wKnkLlgeENdj for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 06:43:47 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 8123B129408 for <netmod@ietf.org>; Tue, 21 Mar 2017 06:43:47 -0700 (PDT)
Received: from localhost (unknown [173.38.220.40]) by mail.tail-f.com (Postfix) with ESMTPSA id 8F0701AE0310; Tue, 21 Mar 2017 14:43:46 +0100 (CET)
Date: Tue, 21 Mar 2017 14:43:53 +0100
Message-Id: <20170321.144353.1304796463767741047.mbj@tail-f.com>
To: worley@ariadne.com
Cc: lhotka@nic.cz, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <87a88evk74.fsf@hobgoblin.ariadne.com>
References: <E8B217D8-9961-49ED-B035-D16CDE957270@nic.cz> <87a88evk74.fsf@hobgoblin.ariadne.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/SoJghnf5garrPsV9wI698Vtb5No>
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 13:43:56 -0000

worley@ariadne.com (Dale R. Worley) wrote:
> One thing that threw me the first time I saw it is marking lists with
> "*".  That doesn't match the generic use of "*", which is to mark the
> thing that is repeated.

Hmm, "*" was choosen b/c people are used to read it as
"zero or more".  So for example:

     +---c server* [name]
         +--c name          string
         ...

means zero or more "server" elements.  Each indexed by "name".

> (Compare using "?" to mark an optional thing,
> which does match the generic usage.)  But in the context of Yang, you
> don't want to flag the items in the list with "*", that would make the
> tree harder to read.

What is an "item in the list"?


/martin