[Tags] add
${resp} Post session ${REST_CONTEXT_BD}/bridge/OVS/MININET/s4 data={}
Should Be Equal As Strings ${resp.status_code} 201
-Delete s1 port s1-eth1
- [Documentation] Delete bridge s1 port s1-eth1
+Delete s1 ports
+ [Documentation] Delete s1 connected ports
[Tags] delete
${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s1/s1-eth1
Should Be Equal As Strings ${resp.status_code} 200
-Delete s1 port s1-eth2
- [Documentation] Delete bridge s1 port s1-eth2
- [Tags] delete
${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s1/s1-eth2
Should Be Equal As Strings ${resp.status_code} 200
-Delete s2 port s2-eth3
- [Documentation] Delete bridge s2 port s2-eth3
- [Tags] delete
${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s2/s2-eth3
Should Be Equal As Strings ${resp.status_code} 200
-Delete s3 port s3-eth3
- [Documentation] Delete bridge s3 port s3-eth3
- [Tags] delete
${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
Should Be Equal As Strings ${resp.status_code} 200
-Add s4 port s4-eth1
- [Documentation] Add s4 port s4-eth1 and patch to s2 port s2-eth3
+Add s4 ports
+ [Documentation] Add s4 connected ports
[Tags] add
${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s4/s4-eth1
... data={"type":"patch", "CUSTOM":{"peer":"s2-eth3"}}
Should Be Equal As Strings ${resp.status_code} 201
-Add s4 port s4-eth2
- [Documentation] Add s4 port s4-eth2 and patch to s3 port s3-eth3
- [Tags] add
${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s4/s4-eth2
... data={"type":"patch", "CUSTOM":{"peer":"s3-eth3"}}
Should Be Equal As Strings ${resp.status_code} 201
-Add s2 port s2-eth3
- [Documentation] Add s2 port s2-eth3 and patch to s4 port s4-eth1
- [Tags] add
${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s2/s2-eth3
... data={"type":"patch", "CUSTOM":{"peer":"s4-eth1"}}
Should Be Equal As Strings ${resp.status_code} 201
-Add s3 port s3-eth3
- [Documentation] Add s3 port s3-eth3 and patch to s4 port s4-eth2
- [Tags] add
${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
... data={"type":"patch", "CUSTOM":{"peer":"s4-eth2"}}
Should Be Equal As Strings ${resp.status_code} 201
-Delete bridge s1
- [Documentation] Delete bridge s1
- [Tags] Delete
- ${resp} Delete session ${REST_CONTEXT_BD}/bridge/OVS/MININET/s1
- Should Be Equal As Strings ${resp.status_code} 200
- Sleep 5
Ping h1 to h4
[Documentation] Ping h1 to h4, verify no packet loss
[Tags] Get
+ Sleep 5
Write h1 ping -c 3 h4
Sleep 6
${result} Read
- Should Contain ${result} 64 bytes
+ Should Contain ${result} 64 bytes
+Remove flows
+ [Documentation] Remove flows generated by simple fwd
+ [Tags] Get
+ Write dpctl del-flows
+ Sleep 1
+ Read
+Delete s4 ports
+ [Documentation] Delete s4 connected ports
+ [Tags] delete
+ ${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s4/s4-eth1
+ Should Be Equal As Strings ${resp.status_code} 200
+ ${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s4/s4-eth2
+ Should Be Equal As Strings ${resp.status_code} 200
+ ${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s2/s2-eth3
+ Should Be Equal As Strings ${resp.status_code} 200
+ ${resp} Delete session ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
+ Should Be Equal As Strings ${resp.status_code} 200
+Add s1 ports
+ [Documentation] Add s1 connected ports
+ [Tags] add
+ ${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s1/s1-eth1
+ ... data={"type":"patch", "CUSTOM":{"peer":"s2-eth3"}}
+ Should Be Equal As Strings ${resp.status_code} 201
+ ${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s1/s1-eth2
+ ... data={"type":"patch", "CUSTOM":{"peer":"s3-eth3"}}
+ Should Be Equal As Strings ${resp.status_code} 201
+ ${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s2/s2-eth3
+ ... data={"type":"patch", "CUSTOM":{"peer":"s1-eth1"}}
+ Should Be Equal As Strings ${resp.status_code} 201
+ ${resp} Post session ${REST_CONTEXT_BD}/port/OVS/MININET/s3/s3-eth3
+ ... data={"type":"patch", "CUSTOM":{"peer":"s1-eth2"}}
+ Should Be Equal As Strings ${resp.status_code} 201
+Delete bridge s4
+ [Documentation] Delete bridge s4
+ [Tags] Delete
+ ${resp} Delete session ${REST_CONTEXT_BD}/bridge/OVS/MININET/s4
+ Should Be Equal As Strings ${resp.status_code} 200
Disconnect mininet
[Documentation] Disconnect mininet, list the nodes and validate result
[Tags] delete