Re: [netmod] tree diagrams - flags

worley@ariadne.com (Dale R. Worley) Tue, 21 March 2017 20:02 UTC

Return-Path: <worley@alum.mit.edu>
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 06D6D128CD5 for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 13:02:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.933
X-Spam-Level:
X-Spam-Status: No, score=-1.933 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no 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 3jEZW6bNdeNW for <netmod@ietfa.amsl.com>; Tue, 21 Mar 2017 13:02:51 -0700 (PDT)
Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D9D32128D19 for <netmod@ietf.org>; Tue, 21 Mar 2017 13:02:50 -0700 (PDT)
Received: from resomta-ch2-01v.sys.comcast.net ([69.252.207.97]) by resqmta-ch2-03v.sys.comcast.net with SMTP id qPzTcABhsfuM3qPzWc0FSD; Tue, 21 Mar 2017 20:02:50 +0000
Received: from hobgoblin.ariadne.com ([IPv6:2601:192:4603:9471:222:fbff:fe91:d396]) by resomta-ch2-01v.sys.comcast.net with SMTP id qPzUcrfRTY10NqPzVcOkwZ; Tue, 21 Mar 2017 20:02:49 +0000
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id v2LK2mhC006726; Tue, 21 Mar 2017 16:02:48 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id v2LK2lep006723; Tue, 21 Mar 2017 16:02:47 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: Martin Bjorklund <mbj@tail-f.com>
Cc: lhotka@nic.cz, netmod@ietf.org
In-Reply-To: <20170321.144353.1304796463767741047.mbj@tail-f.com>
Sender: worley@ariadne.com
Date: Tue, 21 Mar 2017 16:02:47 -0400
Message-ID: <87shm6tn2w.fsf@hobgoblin.ariadne.com>
X-CMAE-Envelope: MS4wfCsWghXY4rMU50ySGktIGNmpevspepZdX6IdxT7Bw7U85xGFDqKA1HA305XcalBzqjUggfYxxGyRImISrCb3nxEp67WTnQb3Sb/fcfUrFFUcykrvSgxE 29b278f4bmVeRMldeznIZyjH1Q9oADFO88jFkIiMCab8rPW13QrcqRmjQnXtraqBTZRvIxAzF1jU6GJcSVp9uM//2LWV2Emn6zc=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/bsLtDbb6ZXbDk3I_tXcWvlf0Tos>
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 20:02:52 -0000

Martin Bjorklund <mbj@tail-f.com> writes:
> 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".

>From RFC 7223:

   module ietf-interfaces {
     ...
     container interfaces {
       ...
       list interface {
         key "name";

         leaf name {
           type string;
         }

         leaf description {
           type string;
         }
   ...

There is a top-level container node "interfaces", which contains a list
node "interface", which contains a sequence of list elements which
consist of groups of (a leaf "name", a leaf "description", etc.), which
elements are indexed by the value of the "name" leaf.

Dale