admin | bae64d8 | 2013-08-01 10:50:15 -0700 | [diff] [blame] | 1 | CASE 1 |
| 2 | NAME "DPCTL Ping Host" |
| 3 | STEP "Adding flow for host2" |
| 4 | ON DPCTL1 DO addFlow USING tcpip AS STEP["tcpip"], tcpport AS STEP["tcpport"], inport AS STEP["inport"] , timeout AS STEP["timeout"], action AS STEP["action"] |
| 5 | STEP "Adding Another Flow for Host3" |
| 6 | ON DPCTL1 DO addFlow USING tcpip AS STEP["tcpip"], tcpport AS STEP["tcpport"], inport AS STEP["inport"] , timeout AS STEP["timeout"], action AS STEP["action"] |
| 7 | STEP "Ping From h2 to h3" |
| 8 | ON Mininet1 DO pingHost USING src AS TOPO["DPCTL1"]["src"], target AS TOPO["DPCTL1"]["target"], controller AS TOPO["DPCTL1"]["controller"] AND STORE LAST_RESULT IN result |
| 9 | ASSERT result EQUALS main.TRUE ONPASS "Ping Successful" ONFAIL "Ping failed" |
| 10 | |
| 11 | CASE 2 |
| 12 | NAME "DPCTL Show Flow" |
| 13 | STEP "Adding flow for host2" |
| 14 | ON DPCTL1 DO addFlow USING tcpip AS STEP["tcpip"], tcpport AS STEP["tcpport"], inport AS STEP["inport"] , timeout AS STEP["timeout"], action AS STEP["action"] |
| 15 | STEP "Adding Another Flow for Host3" |
| 16 | ON DPCTL1 DO addFlow USING tcpip AS STEP["tcpip"], tcpport AS STEP["tcpport"], inport AS STEP["inport"] , timeout AS STEP["timeout"], action AS STEP["action"] |
| 17 | STEP "Execute Show Flow" |
| 18 | ON DPCTL1 DO showFlow USING tcpip AS CASE["tcpip"], tcpport AS CASE["tcpport"] AND STORE LAST_RESULT IN result |
| 19 | ASSERT result EQUALS main.TRUE ONPASS "SHOW FLOW IS EXECUTED" ONFAIL "Show Flow Execution failed" |