def testMininetCluster(remote='ubuntu2', link=RemoteGRELink):
 servers = ['localhost', remote]
 topo = TreeTopo(depth=3, fanout=3)
 net = MininetCluster(topo=topo, servers=servers, link=link, placement=SwitchBinPlacer)
 net.start()
 net.pingAll()
 net.stop()

def testMininetCluster ( remote = 'ubuntu2' , link = RemoteGRELink ) : servers = [ 'localhost' , remote ] topo = TreeTopo ( depth = 3 , fanout = 3 ) net = MininetCluster ( topo = topo , servers = servers , link = link , placement = SwitchBinPlacer ) net . start ( ) net . pingAll ( ) net . stop ( )
test mininetcluster() .