./pox.py python from pox.core import core import pox.openflow.libopenflow_01 as of core = core.core() def launch(): core.openflow.addListenerByName("ConnectionUp", handle_connection) def handle_connection(event): connection = event.connection msg = of.ofp_flow_mod() msg.actions.append(of.ofp_action_output(port = of.OFPP_FLOOD)) connection.send(msg) ./pox.py your_controller_app.py


上一篇:
下一篇:
切换中文