Minor cleanup
This commit is contained in:
committed by
Brian O'Connor
parent
9bfc7c7768
commit
13554a3d83
@@ -109,7 +109,10 @@ class ControlNetwork( Topo ):
|
|||||||
|
|
||||||
|
|
||||||
# Make it Happen!!
|
# Make it Happen!!
|
||||||
|
|
||||||
def run():
|
def run():
|
||||||
|
"Create control and data networks, and invoke the CLI"
|
||||||
|
|
||||||
info( '* Creating Control Network\n' )
|
info( '* Creating Control Network\n' )
|
||||||
ctopo = ControlNetwork( n=4, dataController=DataController )
|
ctopo = ControlNetwork( n=4, dataController=DataController )
|
||||||
cnet = Mininet( topo=ctopo, ipBase='192.168.123.0/24', controller=None )
|
cnet = Mininet( topo=ctopo, ipBase='192.168.123.0/24', controller=None )
|
||||||
@@ -131,7 +134,6 @@ def run():
|
|||||||
|
|
||||||
mn = MininetFacade( net, cnet=cnet )
|
mn = MininetFacade( net, cnet=cnet )
|
||||||
|
|
||||||
# run the function passed as an argument
|
|
||||||
CLI( mn )
|
CLI( mn )
|
||||||
|
|
||||||
info( '* Stopping Data Network\n' )
|
info( '* Stopping Data Network\n' )
|
||||||
@@ -140,7 +142,7 @@ def run():
|
|||||||
info( '* Stopping Control Network\n' )
|
info( '* Stopping Control Network\n' )
|
||||||
cnet.stop()
|
cnet.stop()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
setLogLevel( 'info' )
|
setLogLevel( 'info' )
|
||||||
|
|
||||||
run()
|
run()
|
||||||
|
|||||||
Reference in New Issue
Block a user