Juergen Schoenwaelder <[email protected]> writes:

> On Tue, Sep 30, 2014 at 04:31:03PM -0400, Y. Richard Yang wrote:
>  
>> A particular example of using key-value map is the network-map, which is
>> defined as a key-value store to enforce that each named endpoint address
>> group has a unique name. A specific example is in Section 11.2.1.7 of RFC
>> 7285 (http://www.rfc-editor.org/rfc/rfc7285.txt):
>> 
>>          "network-map" : {
>>            "PID1" : {
>>              "ipv4" : [
>>                "192.0.2.0/24",
>>                "198.51.100.0/25"
>>              ]
>>            },
>>            "PID2" : {
>>              "ipv4" : [
>>                "198.51.100.128/25"
>>              ]
>>            },
>>            "PID3" : {
>>              "ipv4" : [
>>                "0.0.0.0/0"
>>              ],
>>              "ipv6" : [
>>                "::/0"
>>              ]
>>            }
>
> Since YANG's native encoding is XML, how would you represent this in
> XML with the restriction that XML element names are defined by the
> data model and all values are in XML elements?

Moreover, even in JSON we have to work with essentially the same schema
as in XML, so as to be able to interpret XPath expressions in the data
model.

So indeed, a new data node type would be needed for this.

Lada

>
> /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/>
>
> _______________________________________________
> netmod mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/netmod

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C

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

Reply via email to