Statistics
| Branch: | Tag: | Revision:

mininet / examples / clusterSanity.py @ e0bf8ece

History | View | Annotate | Download (503 Bytes)

1 3df36101 cody burkard
#!/usr/bin/env python
2
3
'''
4
A sanity check for cluster edition
5
'''
6
7
from mininet.examples.cluster import MininetCluster
8 e0bf8ece Bob Lantz
from mininet.log import setLogLevel
9 dd876e69 Bob Lantz
from mininet.examples.clustercli import ClusterCLI as CLI
10 3df36101 cody burkard
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()