Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-684

RESTCONF RFC8040 Notifications support for application/yang-data+xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Aluminium
    • None
    • restconf-nb
    • None

      All calls in RFC8040 Notifications support application/yang-data+xml. Example:

      GET /restconf/data/ietf-restconf-monitoring:restconf-state/\
                streams HTTP/1.1
            Host: example.com
            Accept: application/yang-data+xml
      
      
      <streams
              xmlns="urn:ietf:params:xml:ns:yang:ietf-restconf-monitoring">
               <stream>
                  <name>NETCONF</name>
                  <description>default NETCONF event stream</description>
                  <replay-support>true</replay-support>
                  <replay-log-creation-time>\
                     2007-07-08T00:00:00Z\
                  </replay-log-creation-time>
                  <access>
                     <encoding>xml</encoding>
                     <location>https://example.com/streams/NETCONF\
                     </location>
                  </access>
                  <access>
                     <encoding>json</encoding>
                     <location>https://example.com/streams/NETCONF-JSON\
                     </location>
                  </access>
               </stream>
      </streams>

      Now our code return not supported.

       

      Calls to controller :

      127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams

      127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams/stream=netconf-session-end

      127.0.0.1:8181/rests/data/ietf-restconf-monitoring:restconf-state/streams/stream=netconf-session-end/access=XML/location

            blukas Lukas Baca
            blukas Lukas Baca
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: