[NETCONF-684] RESTCONF RFC8040 Notifications support for application/yang-data+xml Created: 12/May/20  Updated: 09/Jul/21  Resolved: 09/Jul/21

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: Aluminium

Type: Bug Priority: Medium
Reporter: Lukas Baca Assignee: Lukas Baca
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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


Generated at Wed Feb 07 20:15:38 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.