blob: b4c9e287cb6e0dae2bd84e2224dbc6a71e4cad53 [file] [log] [blame]
import oftest.controller as controller
import oftest.cstruct as ofp
import oftest.message as message
import oftest.dataplane as dataplane
import oftest.action as action
import logging
def delete_all_flows(controller, logger):
logger.info("Deleting all flows")
msg = message.flow_mod()
msg.match.wildcards = ofp.OFPFW_ALL
msg.command = ofp.OFPFC_DELETE
msg.buffer_id = 0xffffffff
return controller.message_send(msg)