blob: c0fd5ff18fabde7ad54a6f1c22d315fcc13ea46f [file] [log] [blame]
adminbae64d82013-08-01 10:50:15 -07001CASE 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
11CASE 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"