- The XML response is differnt for neon.
- This Patch checks for the STREAM and uses a differnt
response for XML.
Change-Id: Iefeb6c5c2b57c676c73e2942350ff3476dbfa2fc
Signed-off-by: gvrangan <vgovindarajan@luminanetworks.com>
Update_Delegated
[Documentation] Perform update-lsp on the mocked tunnel, check response is success.
&{mapping} BuiltIn.Create_Dictionary IP=${TOOLS_SYSTEM_IP} NAME=${pcc_name}
- ${response}= TemplatedRequests.Post_As_Xml_Templated ${DIR_WITH_TEMPLATES}${/}update_delegated ${mapping} ${CONFIG_SESSION} verify=True
+ ${template_dir} = CompareStream.Set_Variable_If_At_Least_Neon update_delegated_neon update_delegated
+ ${response}= TemplatedRequests.Post_As_Xml_Templated ${DIR_WITH_TEMPLATES}${/}${template_dir} ${mapping} ${CONFIG_SESSION} verify=True
Log ${response}
Topology_Updated
--- /dev/null
+restconf/operations/network-topology-pcep:update-lsp
--- /dev/null
+<input xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep">
+ <node>pcc://$IP</node>
+ <name>$NAME</name>
+ <network-topology-ref xmlns:topo="urn:TBD:params:xml:ns:yang:network-topology">
+ /topo:network-topology/topo:topology[topo:topology-id="pcep-topology"]
+ </network-topology-ref>
+ <arguments>
+ <lsp xmlns="urn:opendaylight:params:xml:ns:yang:pcep:ietf:stateful">
+ <delegate>true</delegate>
+ <administrative>true</administrative>
+ </lsp>
+ <ero>
+ <subobject>
+ <loose>false</loose>
+ <ip-prefix>
+ <ip-prefix>2.2.2.2/32</ip-prefix>
+ </ip-prefix>
+ </subobject>
+ <subobject>
+ <loose>false</loose>
+ <ip-prefix>
+ <ip-prefix>1.1.1.1/32</ip-prefix>
+ </ip-prefix>
+ </subobject>
+ </ero>
+ </arguments>
+</input>
--- /dev/null
+<output xmlns="urn:opendaylight:params:xml:ns:yang:topology:pcep"/>