Subject: Re: [Netconf] restconf-11 ordered by user leaf-list entry insertion

From: Kent Watsen <[email-masked]>
Date: Wed, 29 Jun 2016 19:26:02 +0000

Adapting https://tools.ietf.org/html/draft-ietf-netconf-restconf-13#appendix-D.3.5, and removing all the URL escaping, I’d say:

      POST /restconf/data/x:y/?insert=after&point=/x:y/z=b  HTTP/1.1
      Host: example.com
      Content-Type: application/yang.data+json

      {
        "x:z" : "c"
      }

Kent

On 4/14/16, 5:23 AM, "Netconf on behalf of Jernej Tuljak" <[email-masked] on behalf of [email-masked]> wrote:

For the following module:

module x {
   namespace "example:uri";
   prefix ex;

   container y {
     leaf-list z {
       type string;
       ordered-by user;
     }
   }
}

and a datastore containing:

   <ex:y xmlns:ex="example:uri">
     <ex:z>a</ex:z>
     <ex:z>b</ex:z>
     <ex:z>d</ex:z>
   </ex:y>

what is the correct restconf request (using "insert" and "point") to 
insert leaf-list entry "c" after entry "b", for both XML and JSON encoding?

Jernej

_______________________________________________
Netconf mailing list
[email-masked]
https://www.ietf.org/mailman/listinfo/netconf