Details
-
Bug
-
Status: Resolved
-
Resolution: Done
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
6359
Description
karaf installed features:
odl-restconf-all
odl-netconf-topology
When sending post request to create a mountpoint to some device
url:
http://localhost:8181/restconf/config/network-topology:network-topology/topology/topology-netconf
and payload:
<node xmlns="urn:TBD:params:xml:ns:yang:network-topology">
<node-id>new-netconf-device</node-id>
<host xmlns="urn:opendaylight:netconf-node-topology">127.0.0.1</host>
<port xmlns="urn:opendaylight:netconf-node-topology">17830</port>
<username xmlns="urn:opendaylight:netconf-node-topology">admin</username>
<password xmlns="urn:opendaylight:netconf-node-topology">admin</password>
<tcp-only xmlns="urn:opendaylight:netconf-node-topology">false</tcp-only>
<keepalive-delay xmlns="urn:opendaylight:netconf-node-topology">0</keepalive-delay>
</node>
readFrom function in XmlNormalizedNodeBodyReader class will parse to MapEntryNode and postDataViaTransaction in BrokerFacade class will submit the write transaction differently in compare to the request with same url and following payload:
{
"node":
}
Which is same request in json but read from function in JsonNormalizedNodeBodyReader will parse this payload to MapNode.