def Phase1(): c0 = RemoteController('c0', ip='127.0.0.1', port=6633) net = Mininet(topo=MyTopo(), controller=c0) net.start() testResult = Testing(net) #CLI(net) testResult.run_tests() net.stop()
def Phase2(): c0 = RemoteController('c0', ip='127.0.0.1', port=6633) net = Mininet(topo=MyTopo(), controller=c0, switch=OVSSwitch) net.start() print "Testing the functionality of the network...\n" print "It will take a long time to run all the tests...\n" print "After the tests are finished, please check the result in directory results." #CLI(net) testResult = Testing(net) testResult.run_tests() print "Tests are finished! Please check the result file." net.stop()