Removed unnecessary init() calls.

This commit is contained in:
Bob Lantz
2010-04-10 21:35:58 -07:00
parent 4720f559c3
commit a4db2c2fca
3 changed files with 0 additions and 3 deletions
-1
View File
@@ -21,7 +21,6 @@ if __name__ == '__main__':
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" )
-1
View File
@@ -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 )
-1
View File
@@ -108,7 +108,6 @@ if __name__ == '__main__':
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 )