python from pox.core import core import pox.openflow.libopenflow_01 as of def _handle_ConnectionUp(event): msg = of.ofp_flow_mod() msg.actions.append(of.ofp_action_output(port = of.OFPP_FLOOD)) event.connection.send(msg) def launch(): core.openflow.addListenerByName("ConnectionUp", _handle_ConnectionUp) bash $ git clone https://github.com/noxrepo/pox.git $ cd pox bash $ ./pox.py --verbose mycontroller


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