mininet / examples / clusterSanity.py @ e0bf8ece
History | View | Annotate | Download (503 Bytes)
1 |
#!/usr/bin/env python
|
---|---|
2 |
|
3 |
'''
|
4 |
A sanity check for cluster edition
|
5 |
'''
|
6 |
|
7 |
from mininet.examples.cluster import MininetCluster |
8 |
from mininet.log import setLogLevel |
9 |
from mininet.examples.clustercli import ClusterCLI as CLI |
10 |
from mininet.topo import SingleSwitchTopo |
11 |
|
12 |
def clusterSanity(): |
13 |
"Sanity check for cluster mode"
|
14 |
topo = SingleSwitchTopo() |
15 |
net = MininetCluster( topo=topo ) |
16 |
net.start() |
17 |
CLI( net ) |
18 |
net.stop() |
19 |
|
20 |
if __name__ == '__main__': |
21 |
setLogLevel( 'info' )
|
22 |
clusterSanity() |