Skip to content
Snippets Groups Projects
Commit a4db2c2f authored by Bob Lantz's avatar Bob Lantz
Browse files

Removed unnecessary init() calls.

parent 4720f559
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,6 @@ def ifconfigTest( net ): ...@@ -21,7 +21,6 @@ def ifconfigTest( net ):
lg.setLogLevel( 'info' ) lg.setLogLevel( 'info' )
info( "*** Initializing Mininet and kernel modules\n" ) info( "*** Initializing Mininet and kernel modules\n" )
KernelSwitch.setup() KernelSwitch.setup()
init()
info( "*** Creating network\n" ) info( "*** Creating network\n" )
network = Mininet( TreeTopo( depth=2, fanout=2 ), switch=KernelSwitch) network = Mininet( TreeTopo( depth=2, fanout=2 ), switch=KernelSwitch)
info( "*** Starting network\n" ) info( "*** Starting network\n" )
......
...@@ -67,6 +67,5 @@ def sshd( network, cmd='/usr/sbin/sshd', opts='-D' ): ...@@ -67,6 +67,5 @@ def sshd( network, cmd='/usr/sbin/sshd', opts='-D' ):
if __name__ == '__main__': if __name__ == '__main__':
lg.setLogLevel( 'info') lg.setLogLevel( 'info')
init()
net = TreeNet( depth=1, fanout=4, switch=KernelSwitch ) net = TreeNet( depth=1, fanout=4, switch=KernelSwitch )
sshd( net ) sshd( net )
...@@ -108,7 +108,6 @@ def udpbwtest( net, seconds ): ...@@ -108,7 +108,6 @@ def udpbwtest( net, seconds ):
lg.setLogLevel( 'info' ) lg.setLogLevel( 'info' )
if not os.path.exists( './udpbwtest' ): if not os.path.exists( './udpbwtest' ):
raise Exception( 'Could not find udpbwtest in current directory.' ) raise Exception( 'Could not find udpbwtest in current directory.' )
init()
network = Mininet( TreeTopo( depth=2, fanout=2 ), switch=KernelSwitch ) network = Mininet( TreeTopo( depth=2, fanout=2 ), switch=KernelSwitch )
network.start() network.start()
udpbwtest( network, seconds=10 ) udpbwtest( network, seconds=10 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment