def runMininet(): "Create and test a simple network" topo = TreeTopo(3, 2) rmController = RemoteController("c0", ip="127.0.0.1", port=6653) net = Mininet(controller=rmController, topo=topo, link=OVSLink, switch=OVSKernelSwitch, xterms=False, autoSetMacs=False, autoStaticArp=True, cleanup=False) net.start() CLI(net) net.stopXterms() net.stop()
def runMininet(): "Create and test a simple network" topo = FatTreeTopo() topo.createTopo() topo.createLink() f = open('physical_network_fat.xml', 'a') f.write("</physical_network>\n") f.close() rmController = RemoteController("c0", ip="127.0.0.1", port=6653) net = Mininet(controller=rmController, topo=topo, link=OVSLink, switch=OVSKernelSwitch, xterms=False, autoSetMacs=False, autoStaticArp=True, cleanup=False) net.start() CLI(net) net.stopXterms() net.stop()