blob: b4c9e287cb6e0dae2bd84e2224dbc6a71e4cad53 [file] [log] [blame]
Dan Talaycoc901f4d2010-03-07 21:55:45 -08001
2import oftest.controller as controller
3import oftest.cstruct as ofp
4import oftest.message as message
5import oftest.dataplane as dataplane
6import oftest.action as action
7import logging
8
9def 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