2 Documentation Test suite for AddressObservations in RESTCONF inventory
4 Library RequestsLibrary
5 Resource ../../../libraries/Utils.robot
6 Resource ../../../variables/openflowplugin/Variables.robot
7 Variables ../../../variables/Variables.py
9 Suite Setup Create Session session http://${ODL_SYSTEM_IP}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
10 Suite Teardown Delete All Sessions
20 Check Stats for node 1
21 [Documentation] Get the stats for a node
22 Wait Until Keyword Succeeds 10s 2s Check Nodes Stats openflow%3A1
24 Check Stats for node 2
25 [Documentation] Get the stats for a node
26 Wait Until Keyword Succeeds 10s 2s Check Nodes Stats openflow%3A2
28 Check Stats for node 3
29 [Documentation] Get the stats for a node
30 Wait Until Keyword Succeeds 10s 2s Check Nodes Stats openflow%3A3
32 Check No Host Is Present
33 [Documentation] Get the invnetory, should not contain any host address
34 @{list} Create List ${IP_1} ${IP_2} ${IP_3}
35 Wait Until Keyword Succeeds
38 ... Check For Elements Not At URI
39 ... ${RFC8040_OPERATIONAL_NODES_API}
43 [Documentation] Pingall, verify no packet loss
44 Wait Until Keyword Succeeds 10s 2s Ping All Works Good
46 Check node 1 addresses
47 [Documentation] Get the address observations for node 1
48 @{list} Create List ${IP_2} ${IP_3}
49 Wait Until Keyword Succeeds
52 ... Check For Specific Number Of Elements At URI
53 ... ${RFC8040_NODES_API}/node=openflow%3A1?content=nonconfig
56 Wait Until Keyword Succeeds
59 ... Check For Elements Not At URI
60 ... ${RFC8040_NODES_API}/node=openflow%3A1?content=nonconfig
63 Check node 2 addresses
64 [Documentation] Get the address observations for node 2
65 @{list} Create List ${IP_1} ${IP_3}
66 Wait Until Keyword Succeeds
69 ... Check For Specific Number Of Elements At URI
70 ... ${RFC8040_NODES_API}/node=openflow%3A2?content=nonconfig
73 Wait Until Keyword Succeeds
76 ... Check For Elements Not At URI
77 ... ${RFC8040_NODES_API}/node=openflow%3A2?content=nonconfig
80 Check node 3 addresses
81 [Documentation] Get the address observations for node 3
82 @{list} Create List ${IP_1} ${IP_2}
83 Wait Until Keyword Succeeds
86 ... Check For Specific Number Of Elements At URI
87 ... ${RFC8040_NODES_API}/node=openflow%3A3?content=nonconfig
90 Wait Until Keyword Succeeds
93 ... Check For Elements Not At URI
94 ... ${RFC8040_NODES_API}/node=openflow%3A3?content=nonconfig
101 ${result} Read Until mininet>
102 Should Contain ${result} Results: 0% dropped