2 Documentation Test suite for FlowProgramming in RESTCONF inventory
3 Suite Setup Create Session session http://${CONTROLLER}:${RESTCONFPORT} auth=${AUTH} headers=${HEADERS_XML}
4 Suite Teardown Delete All Sessions
7 Library ../../../libraries/RequestsLibrary.py
8 Library ../../../libraries/Common.py
9 Variables ../../../variables/Variables.py
12 ${REST_CONTEXT} /restconf/operational/opendaylight-inventory:nodes
15 Get flows before ping through console
16 [Documentation] Dump flows should list initial flows (drop, arp, lldp, flood per port)
17 Write sh ovs-ofctl dump-flows s1 -O OpenFlow13
18 ${result} Read Until mininet>
19 Should Contain X Times ${result} actions 4
20 Write sh ovs-ofctl dump-flows s2 -O OpenFlow13
21 ${result} Read Until mininet>
22 Should Contain X Times ${result} actions 5
23 Write sh ovs-ofctl dump-flows s3 -O OpenFlow13
24 ${result} Read Until mininet>
25 Should Contain X Times ${result} actions 4
27 # Get flows before ping through restconf
28 # [Documentation] Get the inventory, should not contain flows
29 # ${resp} Get session ${REST_CONTEXT}/node/openflow:1/table/0
30 # Should Be Equal As Strings ${resp.status_code} 200
31 # Should Not Contain ${resp.content} flow
34 [Documentation] Pingall, verify no packet loss
36 ${result} Read Until mininet>
37 Should Contain ${result} 0% dropped
38 Should Not Contain ${result} X
40 #Get flows after ping through console
41 # [Documentation] Dump flows should list flows
42 # Write sh ovs-ofctl dump-flows s1 -O OpenFlow13
43 # ${result} Read Until mininet>
44 # Should Contain X Times ${result} actions 4
45 # Write sh ovs-ofctl dump-flows s2 -O OpenFlow13
47 # ${result} Read Until mininet>
48 # Should Contain X Times ${result} actions 6
49 # Write sh ovs-ofctl dump-flows s3 -O OpenFlow13
51 # ${result} Read Until mininet>
52 # Should Contain X Times ${result} actions 4
55 #Get flows after ping through restconf
56 # [Documentation] Get the inventory, should not contain flows
57 # ${resp} Get session ${REST_CONTEXT}/node/openflow:1/table/0
58 # Should Be Equal As Strings ${resp.status_code} 200