Dan Talayco | c901f4d | 2010-03-07 21:55:45 -0800 | [diff] [blame] | 1 | |
2 | import oftest.controller as controller | ||||
3 | import oftest.cstruct as ofp | ||||
4 | import oftest.message as message | ||||
5 | import oftest.dataplane as dataplane | ||||
6 | import oftest.action as action | ||||
7 | import logging | ||||
8 | |||||
9 | def delete_all_flows(controller, logger): | ||||
10 | logger.info("Deleting all flows") | ||||
11 | msg = message.flow_mod() | ||||
12 | msg.match.wildcards = ofp.OFPFW_ALL | ||||
13 | msg.command = ofp.OFPFC_DELETE | ||||
14 | msg.buffer_id = 0xffffffff | ||||
15 | return controller.message_send(msg) | ||||
16 |