Hi Martin,

> On 21 Oct 2019, at 18:42, Martin Bjorklund <[email protected]> wrote:
> 
> "Alexey Melnikov" <[email protected]> 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>

Right, this is very sensible and I have no further questions.

Thank you,
Alexey

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

_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to