git clone https://github.com/noxrepo/pox python from pox.core import core from pox.lib.addresses import EthAddr from pox.lib.packet.ethernet import ethernet from pox.lib.packet.ipv4 import ipv4 class MyController(object): def __init__(self): def _handle_ConnectionUp(self, event): def _handle_PacketIn(self, event): if isinstance(packet.next, ipv4): elif isinstance(packet.next, ethernet): def launch(): python #!/usr/bin/env python from pox.boot import boot if __name__ == '__main__': boot('pox.my_controller') $ python start_pox.py


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