action_list: throw exception if value is not an action
This is a programmer error, not a switch issue.
diff --git a/tests/load.py b/tests/load.py
index 6c8bda4..b35abc1 100644
--- a/tests/load.py
+++ b/tests/load.py
@@ -69,11 +69,11 @@
request.hard_timeout = 2 * barrier_count
request.buffer_id = 0xffffffff
- self.assertTrue(request.actions.add(act), "Could not add action")
+ request.actions.add(act)
act = action.action_output()
act.port = ofp.OFPP_CONTROLLER
- self.assertTrue(request.actions.add(act), "Could not add action")
+ request.actions.add(act)
rv = self.controller.message_send(request)
self.assertTrue(rv != -1, "Error installing flow mod")
@@ -85,7 +85,7 @@
msg.data = str(pkt)
act = action.action_output()
act.port = lb_port + 1
- self.assertTrue(msg.actions.add(act), 'Could not add action to msg')
+ msg.actions.add(act)
logging.info("Sleeping before starting storm")
time.sleep(1) # Root causing issue with fast disconnects
logging.info("Sending packet out to %d" % (lb_port + 1))
@@ -180,7 +180,7 @@
msg.data = str(outpkt)
act = action.action_output()
act.port = dp_port
- self.assertTrue(msg.actions.add(act), 'Could not add action to msg')
+ msg.actions.add(act)
logging.info("PacketOutLoad to: " + str(dp_port))
for count in range(100):