Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
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
Attachments
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 89704,4 | RESTCONF RFC8040 Notifications support for application/yang-data+xml | master | netconf | Status: MERGED | +2 | +1 |