${node} Element to String ${node}
Should Contain X Times ${node} <node-ref>of-node:2</node-ref> 1
Should Contain X Times ${node} <node-ref>of-node:8</node-ref> 1
+
+Unification Node Inside
+ [Documentation] Test of unification type of aggregation inside on nodes on Network Topology model
+ ${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} network-topology-model node network-topology-pcep:path-computation-client/network-topology-pcep:ip-address network-topo:1
+ ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ Should Contain ${resp.content} <topology-id>topo:1</topology-id>
+ Should Contain X Times ${resp.content} <node-id>node: 4
+ ${response_xml} Parse XML ${resp.content}
+ ${node} Get Element ${response_xml} xpath=.//node/supporting-node[node-ref='pcep:3']/..
+ ${node} Element To String ${node}
+ Should Contain X Times ${node} <supporting-node> 2
+ Should Contain ${node} <supporting-node><node-ref>pcep:3</node-ref>
+ Should Contain ${node} <supporting-node><node-ref>pcep:4</node-ref>
+
+Unification Node Inside Inventory
+ [Documentation] Test of unification type of aggregation inside on nodes on Inventory model
+ ${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} opendaylight-inventory-model node flow-node-inventory:ip-address openflow-topo:2
+ ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ Should Contain ${resp.content} <topology-id>topo:1</topology-id>
+ Should Contain X Times ${resp.content} <node-id>node: 4
+ ${response_xml} Parse XML ${resp.content}
+ ${node} Get Element ${response_xml} xpath=.//node/supporting-node[node-ref='of-node:7']/..
+ ${node} Element To String ${node}
+ Should Contain X Times ${node} <supporting-node> 2
+ Should Contain ${node} <supporting-node><node-ref>of-node:7</node-ref>
+ Should Contain ${node} <supporting-node><node-ref>of-node:9</node-ref>
<node>
<node-id>pcep:4</node-id>
<pcep:path-computation-client>
- <pcep:ip-address>192.168.2.2</pcep:ip-address>
+ <pcep:ip-address>192.168.2.1</pcep:ip-address>
</pcep:path-computation-client>
</node>
<node>
<node>
<id>openflow:9</id>
<flov-inv:manufacturer>Cisco</flov-inv:manufacturer>
- <flov-inv:ip-address>192.168.1.5</flov-inv:ip-address>
+ <flov-inv:ip-address>192.168.2.3</flov-inv:ip-address>
</node>
<node>
<id>openflow:10</id>