2 Documentation Test suite for Address in RESTCONF topology
3 Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
4 Suite Teardown Delete All Sessions
5 Library RequestsLibrary
6 Resource ../../../libraries/Utils.txt
7 Variables ../../../variables/Variables.py
10 ${MAC_1} 00:00:00:00:00:01
11 ${MAC_2} 00:00:00:00:00:02
12 ${MAC_3} 00:00:00:00:00:03
18 Check Stats for node 1
19 [Documentation] Get the stats for a node
20 Wait Until Keyword Succeeds 30s 2s Check Nodes Stats openflow:1
22 Check Stats for node 2
23 [Documentation] Get the stats for a node
24 Wait Until Keyword Succeeds 30s 2s Check Nodes Stats openflow:2
26 Check Stats for node 3
27 [Documentation] Get the stats for a node
28 Wait Until Keyword Succeeds 30s 2s Check Nodes Stats openflow:3
31 [Documentation] Get the topology and check links
32 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} link-id 4
34 Check No Host Is Present
35 [Documentation] Get the network topology, should not contain any host address
36 @{list} Create List ${MAC_1} ${MAC_2} ${MAC_3}
37 Wait Until Keyword Succeeds 30s 2s Check For Elements Not At URI ${OPERATIONAL_TOPO_API} ${list}
38 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} link-id 4
41 [Documentation] Pingall, verify no packet loss
43 ${result} Read Until mininet>
44 Should Contain ${result} Results: 0% dropped
47 [Documentation] Get the topology and check links
48 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} link-id 10
51 [Documentation] Get the network topology,
52 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} "node-id":"host:${MAC_1}" 1
55 [Documentation] Get the network topology,
56 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} "node-id":"host:${MAC_2}" 1
59 [Documentation] Get the network topology,
60 Wait Until Keyword Succeeds 30s 2s Check For Specific Number Of Elements At URI ${OPERATIONAL_TOPO_API} "node-id":"host:${MAC_3}" 1