${REMOTE_FILE} ${WORKSPACE}/${BUNDLEFOLDER}/etc/opendaylight/karaf/80-topoprocessing-config.xml
*** Keywords ***
-Send Basic Request
+Basic Request Put
[Arguments] ${request} ${overlay_topology_url}
[Documentation] Test basic aggregation
${resp} Put Request session ${CONFIG_API}/${overlay_topology_url} data=${request}
Should Be Equal As Strings ${resp.status_code} 200
Wait For Karaf Log Correlation configuration successfully read
Wait For Karaf Log Transaction successfully written
+
+Basic Request Get And Test
+ [Arguments] ${request} ${overlay_topology_url} ${should_contain} ${times}
+ [Documentation] Test basic aggregation
${resp} Get Request session ${OPERATIONAL_API}/${overlay_topology_url}
Should Be Equal As Strings ${resp.status_code} 200
+ Should Contain X Times ${resp.content} ${should_contain} ${times}
+ [Return] ${resp}
+
+Send Basic Request And Test If Contain X Times
+ [Arguments] ${request} ${overlay_topology_url} ${should_contain} ${times}
+ [Documentation] Test basic aggregation
+ Basic Request Put ${request} ${overlay_topology_url}
+ ${resp} Wait Until Keyword Succeeds 40x 250ms Basic Request Get And Test ${request} ${overlay_topology_url}
+ ... ${should_contain} ${times}
Log ${resp.content}
[Return] ${resp}
${request} Prepare Unification Topology Request ${UNIFICATION_NT} network-topology-model node network-topo:1 network-topo:2
${request} Insert Target Field ${request} 0 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
${request} Insert Target Field ${request} 1 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 8
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 9
: FOR ${index} IN RANGE 1 10
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:10']/..
${request} Prepare Unification Topology Request ${UNIFICATION_NT} opendaylight-inventory-model node openflow-topo:1 openflow-topo:2
${request} Insert Target Field ${request} 0 flow-node-inventory:ip-address 0
${request} Insert Target Field ${request} 1 flow-node-inventory:ip-address 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 7
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 8
: FOR ${index} IN RANGE 1 11
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:1']/..
${request} Insert Target Field ${request} 0 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
${request} Insert Target Field ${request} 1 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
${request} Insert Scripting into Request ${request} javascript if (originalItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.1") > -1 && newItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.3") > -1 || originalItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.3") > -1 && newItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.1") > -1) {aggregable.setResult(true);} else { aggregable.setResult(false);}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 9
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 9
: FOR ${index} IN RANGE 1 11
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/..
${request} Insert Target Field ${request} 0 flow-node-inventory:ip-address 0
${request} Insert Target Field ${request} 1 flow-node-inventory:ip-address 0
${request} Insert Scripting into Request ${request} javascript if (originalItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.2") > -1 && newItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.4") > -1 || originalItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.4") > -1 && newItem.getLeafNodes().get(java.lang.Integer.valueOf('0')).getValue().indexOf("192.168.1.2") > -1) {aggregable.setResult(true);} else { aggregable.setResult(false);}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 9
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 9
: FOR ${index} IN RANGE 1 11
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
[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-topo:1
${request} Insert Target Field ${request} 0 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 4
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='bgp:3']/..
${node} Element To String ${node}
[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 openflow-topo:2
${request} Insert Target Field ${request} 0 flow-node-inventory:ip-address 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 4
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}
[Documentation] Test aggregate inside operation on termination points
${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} network-topology-model termination-point network-topo:1
${request} Insert Target Field ${request} 0 ovsdb:ofport 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 6
# bgp:1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/..
[Documentation] Test aggregate inside operation on termination points
${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} opendaylight-inventory-model termination-point openflow-topo:1
${request} Insert Target Field ${request} 0 flow-node-inventory:port-number 0
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 8
# of-node:1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:1']/..
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:1
${request} Insert Filter ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4
${request} Set IPV4 Filter ${request} 192.168.1.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>bgp:1</node-ref> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:1
${request} Insert Filter ${request} ${FILTER_IPV4} flow-node-inventory:ip-address
${request} Set IPV4 Filter ${request} 192.168.1.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
: FOR ${index} IN RANGE 1 4
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} ovsdb:ovs-version
${request} Set Range Number Filter ${request} 20 25
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 4
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 4
: FOR ${index} IN RANGE 7 11
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 5
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} flow-node-inventory:serial-number
${request} Set Range Number Filter ${request} 20 25
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
: FOR ${index} IN RANGE 8 11
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_NUMBER} ovsdb:ovs-version
${request} Set Specific Number Filter ${request} 25
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>bgp:9</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>bgp:10</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 2
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_NUMBER} flow-node-inventory:serial-number
${request} Set Specific Number Filter ${request} 21
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>of-node:8</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>of-node:9</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} ovsdb:ovs-version
${request} Set Specific String Filter ${request} 25
- ${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: 2
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
+ Should Contain ${resp.content} <topology-id>topo:1</topology-id> ${EMPTY}
Should Contain X Times ${resp.content} <node-ref>bgp:9</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>bgp:10</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 2
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} flow-node-inventory:serial-number
${request} Set Specific String Filter ${request} 21
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>of-node:8</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>of-node:9</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} ovsdb:ovs-version
${request} Set Range String Filter ${request} 20 25
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 4
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 4
: FOR ${index} IN RANGE 7 11
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 5
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} flow-node-inventory:serial-number
${request} Set Range String Filter ${request} 20 25
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
: FOR ${index} IN RANGE 8 11
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model node network-topo:3
${request} Insert Filter ${request} ${FILTER_IPV6} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv6
${request} Set IPV6 Filter ${request} fe80:0:0:0:0:0:c0a8:101/120
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>bgp:11</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>bgp:12</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model node openflow-topo:3
${request} Insert Filter ${request} ${FILTER_IPV6} flow-node-inventory:ip-address
${request} Set IPV6 Filter ${request} fe80:0:0:0:0:0:c0a8:201/120
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
Should Contain X Times ${resp.content} <node-ref>of-node:12</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>of-node:14</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>of-node:15</node-ref> 1
${request} Insert Filter ${request} ${FILTER_SCRIPT} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4
${script} Set Variable if (node.getValue().indexOf("192.168.1") > -1 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
: FOR ${index} IN RANGE 3 6
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
Should Contain X Times ${resp.content} <termination-point> 5
${request} Insert Filter ${request} ${FILTER_SCRIPT} flow-node-inventory:ip-address
${script} Set Variable if (node.getValue().indexOf("192.168.2") > -1 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 3
: FOR ${index} IN RANGE 1 4
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model termination-point network-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} ovsdb:ofport
${request} Set Range Number Filter ${request} 1115 1119
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:7']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model termination-point openflow-topo:1
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} flow-node-inventory:port-number
${request} Set Range Number Filter ${request} 2 4
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 5
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model termination-point network-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_NUMBER} ovsdb:ofport
${request} Set Specific Number Filter ${request} 1119
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:7']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model termination-point openflow-topo:1
${request} Insert Filter ${request} ${FILTER_SPECIFIC_NUMBER} flow-node-inventory:maximum-speed
${request} Set Specific Number Filter ${request} 2
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model termination-point network-topo:2
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} ovsdb:name
${request} Set Specific String Filter ${request} portC
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:7']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model termination-point openflow-topo:1
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} flow-node-inventory:name
${request} Set Specific String Filter ${request} portB
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
- Should Contain X Times ${resp.content} <node-id>node: 5
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 2
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model termination-point network-topo:2
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} ovsdb:name
${request} Set Range String Filter ${request} portA portC
- ${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: 5
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
+ Should Contain ${resp.content} <topology-id>topo:1</topology-id> ${EMPTY}
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:6']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model termination-point openflow-topo:1
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} flow-node-inventory:name
${request} Set Range String Filter ${request} portA portB
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
- Should Contain X Times ${resp.content} <node-id>node: 5
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
${node} Element to String ${node}
${request} Insert Filter ${request} ${FILTER_SCRIPT} ovsdb:ofport
${script} Set Variable if (node.getValue() > 1117 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:4']/..
${node} Element to String ${node}
${request} Insert Filter ${request} ${FILTER_SCRIPT} flow-node-inventory:name
${script} Set Variable if (node.getValue().indexOf("portB") > -1 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:2']/..
${node} Element to String ${node}
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model link network-topo:1
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:metric
${request} Set Range Number Filter ${request} 11 13
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 3
Check Supporting Links in Links ${resp.content} 3
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:4</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:3</link-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model link openflow-topo:3
${request} Insert Filter ${request} ${FILTER_RANGE_NUMBER} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:metric
${request} Set Range Number Filter ${request} 14 15
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 2
Check Supporting Links in Links ${resp.content} 2
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:14:12</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:15:13</link-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model link network-topo:1
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${request} Set Specific String Filter ${request} linkA
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 2
Check Supporting Links in Links ${resp.content} 2
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:4</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:2-1</link-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model link openflow-topo:3
${request} Insert Filter ${request} ${FILTER_SPECIFIC_STRING} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${request} Set Specific String Filter ${request} linkD
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 1
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 1
Check Supporting Links in Links ${resp.content} 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:15:13</link-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} network-topology-model link network-topo:1
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${request} Set Range String Filter ${request} linkA linkB
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 3
Check Supporting Links in Links ${resp.content} 3
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:4</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:2-1</link-ref> 1
${request} Prepare Filtration Topology Request ${FILTRATION_NT} opendaylight-inventory-model link openflow-topo:3
${request} Insert Filter ${request} ${FILTER_RANGE_STRING} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${request} Set Range String Filter ${request} linkC linkD
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 2
Check Supporting Links in Links ${resp.content} 2
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:14:12</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:15:13</link-ref> 1
${request} Insert Filter ${request} ${FILTER_SCRIPT} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${script} Set Variable if (node.getValue().indexOf("linkA") > -1 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 2
Check Supporting Links in Links ${resp.content} 2
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:3</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/network-topo:1/link/link:1:2-2</link-ref> 1
${request} Insert Filter ${request} ${FILTER_SCRIPT} l3-unicast-igp-topology:igp-link-attributes/l3-unicast-igp-topology:name
${script} Set Variable if (node.getValue().indexOf("linkA") > -1 ) {filterOut.setResult(true);} else {filterOut.setResult(false);}
${request} Set Script Filter ${request} javascript ${script}
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <link-id>link: 3
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <link-id>link: 3
Check Supporting Links in Links ${resp.content} 3
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:11:12</link-ref> 1
Should Contain X Times ${resp.content} <link-ref>/network-topology/topology/openflow-topo:3/link/link:14:12</link-ref> 1
${request} Insert Filter With ID ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 1
${request} Insert Apply Filters ${request} 1 1
${request} Set IPV4 Filter ${request} 192.168.2.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain ${resp.content} <node-ref>bgp: 3
: FOR ${index} IN RANGE 18 21
\ Should Contain X Times ${resp.content} <node-ref>bgp:${index}</node-ref> 1
${request} Insert Filter With ID ${request} ${FILTER_IPV4} flow-node-inventory:ip-address 1
${request} Insert Apply Filters ${request} 1 1
${request} Set IPV4 Filter ${request} 192.168.2.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain ${resp.content} <node-ref>of-node: 4
: FOR ${index} IN RANGE 17 21
\ Should Contain X Times ${resp.content} <node-ref>of-node:${index}</node-ref> 1
${request} Insert Filter With ID ${request} ${FILTER_SPECIFIC_STRING} ovsdb:name 1
${request} Insert Apply Filters ${request} 1 1
${request} Set Specific String Filter ${request} portA
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 5
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 5
Should Contain X Times ${resp.content} <termination-point> 3
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:21']/..
${node} Element to String ${node}
${request} Insert Apply Filters ${request} 1 1
${request} Insert Apply Filters ${request} 2 1
${request} Set IPV4 Filter ${request} 192.168.1.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node> 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node> 2
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:1']/..
${node} Element to String ${node}
Should Contain X Times ${node} <supporting-node> 2
${request} Insert Apply Filters ${request} 1 1
${request} Insert Apply Filters ${request} 2 1
${request} Set IPV4 Filter ${request} 192.168.1.1/24
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node> 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node> 2
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='of-node:26']/..
${node} Element to String ${node}
Should Contain X Times ${node} <node-ref>of-node:26</node-ref> 1
${request} Prepare Unification Inside Topology Request ${UNIFICATION_NT_AGGREGATE_INSIDE} network-topology-model node network-topo:6
${request} Insert Target Field ${request} 0 l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4 0
${request} Insert Link Computation Inside ${request} ${LINK_COMPUTATION_INSIDE} n:network-topology-model network-topo:6
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 4
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 4
Should Contain X Times ${resp.content} <link-id> 4
#nodes 29 and 28
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:28']/..
${request} Insert Filter ${request} ${FILTER_IPV4} l3-unicast-igp-topology:igp-node-attributes/isis-topology:isis-node-attributes/isis-topology:ted/isis-topology:te-router-id-ipv4
${request} Set IPV4 Filter ${request} 192.168.2.1/32
${request} Insert Link Computation Inside ${request} ${LINK_COMPUTATION_INSIDE} n:network-topology-model network-topo:6
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <node-ref>bgp:28</node-ref> 1
Should Contain X Times ${resp.content} <node-ref>bgp:29</node-ref> 1
Should Contain X Times ${resp.content} <link> 1
${request} Insert Apply Filters ${request} 2 1
${request} Set IPV4 Filter ${request} 192.168.1.1/24
${request} Insert Link Computation ${request} ${LINK_COMPUTATION} n:network-topology-model network-topo:6 network-topo:1
- ${resp} Send Basic Request ${request} network-topology:network-topology/topology/topo:1
+ ${resp} Send Basic Request And Test If Contain X Times ${request} network-topology:network-topology/topology/topo:1 <node-id>node: 2
Should Contain ${resp.content} <topology-id>topo:1</topology-id>
- Should Contain X Times ${resp.content} <node-id>node: 2
Should Contain X Times ${resp.content} <link> 2
#nodes 26 and 1
${node} Get Element ${resp.content} xpath=.//node/supporting-node[node-ref='bgp:26']/..