3 "clusterdemo.py: demo of Mininet Cluster Edition prototype"
5 from mininet.examples.cluster import ( MininetCluster, SwitchBinPlacer,
7 # ^ Could also use: RemoteSSHLink, RemoteGRELink
8 from mininet.topolib import TreeTopo
9 from mininet.log import setLogLevel
10 from mininet.examples.clustercli import ClusterCLI as CLI
13 "Simple Demo of Cluster Mode"
14 servers = [ 'localhost', 'ubuntu2', 'ubuntu3' ]
15 topo = TreeTopo( depth=3, fanout=3 )
16 net = MininetCluster( topo=topo, servers=servers, Link=RemoteLink,
17 placement=SwitchBinPlacer )
22 if __name__ == '__main__':