Hi Amar,

Based on RFC 7952 section 5.2.1, I think that it would look like this:

{
    "example:interface" : [
       {
           "name" : "eth1",
           "mtu" : 1500,
           "@mtu" : {
                  "ietf-netconf-with-defaults:default" : true,
  "ietf-origin:origin" : intended
              },
           "status" : "up"
      }
  ]
}

Thanks,
Rob


On 14/02/2019 06:49, Amar Jadagoud wrote:
Hi All,

I have a question regarding encoding of origin annotation along with other annotation (with-defaults) in JSON metadata encoding format.

Suppose if below is the GET method :

GET /restconf/ds/ietf-datastores:operational/ietf-interface:interfaces/interface=eth1?with-defaults=report-all-tagged&with-origin HTTP/1.1

How both origin and with-defaults annotations should be encoded in the JSON metadata encoding format?

Currently in restconf RFC 8040, in section 5.3.2, example with only one annotation is provided.

 Refering to this example, whether multiple annotation representation should be like below?

{
    "example:interface" : [
       {
           "name" : "eth1",
           "mtu" : 1500,
           "@mtu" : {
"ietf-netconf-with-defaults:default" : true
              },
              {
                    "ietf-origin:origin" : intended
              },
              "status" : "up"
      }
  ]
}

Thanks,
Amar

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to