Re: [netmod] Alexey Melnikov's No Objection on draft-ietf-netmod-yang-data-ext-04: (with COMMENT)

Martin Bjorklund <mbj@tail-f.com> Mon, 21 October 2019 17:42 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 DF45D12011B; Mon, 21 Oct 2019 10:42:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-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 s5IXbmkPOTGC; Mon, 21 Oct 2019 10:42:38 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 46077120110; Mon, 21 Oct 2019 10:42:38 -0700 (PDT)
Received: from localhost (h-4-44.A165.priv.bahnhof.se [158.174.4.44]) by mail.tail-f.com (Postfix) with ESMTPSA id BD9541AE018A; Mon, 21 Oct 2019 19:42:32 +0200 (CEST)
Date: Mon, 21 Oct 2019 19:42:32 +0200 (CEST)
Message-Id: <20191021.194232.2128729051695435599.mbj@tail-f.com>
To: aamelnikov@fastmail.fm
Cc: iesg@ietf.org, draft-ietf-netmod-yang-data-ext@ietf.org, joelja@gmail.com, netmod-chairs@ietf.org, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <255a8fa3-065c-43a7-8aaa-9d238082f1a2@www.fastmail.com>
References: <157149705555.22382.7739043484092917840.idtracker@ietfa.amsl.com> <20191021.093315.1654394906403168701.mbj@tail-f.com> <255a8fa3-065c-43a7-8aaa-9d238082f1a2@www.fastmail.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YzLbzbJPAqS3yodlgDoeIBaYQGc>
Subject: Re: [netmod] Alexey Melnikov's No Objection on draft-ietf-netmod-yang-data-ext-04: (with COMMENT)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 21 Oct 2019 17:42:40 -0000

"Alexey Melnikov" <aamelnikov@fastmail.fm>; wrote:
> Hi Martin,
> 
> On Mon, Oct 21, 2019, at 8:33 AM, Martin Bjorklund wrote:
> 
> > > This is a fine document.
> > > 
> > > Can you show and example similar to what in A.3 with 2 addressbook
> > > entries?
> > 
> > The example isn't really written to handle more than one address
> > book.  The structure defines one single address book.  But perhaps I
> > misunderstood your question?
> 
> The example in A.1 contains "list address". Can this list contain more
> than one element in it?

Aha, I see.  Yes it can.

> If yes, can you provide an example with
> multiple elements?

In XML it would be:

  <address-book xmlns="urn:example:example-module">
     <address>
       <last>Flintstone</last>
       <first>Fred</first>
       <street>301 Cobblestone Way</street>
       <city>Bedrock</city>
       <zipcode xmlns="urn:example:example-module-aug">70777</zipcode>
     </address>
     <address>
       <last>Root</last>
       <first>Charlie</first>
       <street>4711 Cobblestone Way</street>
       <city>Bedrock</city>
       <zipcode xmlns="urn:example:example-module-aug">70777</zipcode>
     </address>
   </address-book>


> I am trying to figure out how multiple elements
> would be represented in XML (In JSON it seems more obvious to me). My
> YANG knowledge is limited, so I don't know whether or not there is an
> issue. But I couldn't tell until I see an example.

Also see section 4.2.2.4 in RFC 7950 for another example of multiple
list entries.



/martin