-
Bug
-
Resolution: Done
-
High
-
None
Invoking YANG Patch with XML payload (PATCH http://192.168.56.25:8181/rests/data/network-topology:network-topology/topology=topology-netconf/node=17830-sim-device/yang-ext:mount/instance-identifier-patch-module:patch-cont/my-list1=leaf1):
<yang-patch xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-patch"> <patch-id>test-patch</patch-id> <comment>this is test patch</comment> <edit> <edit-id>edit1</edit-id> <operation>replace</operation> <target>/my-leaf11</target> <value> <my-leaf11>my-leaf11 :: XML value</my-leaf11> </value> </edit> </yang-patch>
Results in error and leaf value is not written:
{ "errors": { "error": [ { "error-tag": "malformed-message", "error-message": "Error parsing input: null", "error-type": "protocol" } ] } }
Corresponding payload in JSON works.