Change switch link bringup
This commit is contained in:
1 parent
e9c207ea7b
commit
49a6480e85
1 file changed
+4
-2
+4
-2
@@ -1133,8 +1133,10 @@ class MininetCluster( Mininet ):
|
||||
|
||||
info( '\n*** HACK: bringing up switch links\n' )
|
||||
for switch in self.switches:
|
||||
for intf in switch.intfs.values():
|
||||
intf.ifconfig( 'up' )
|
||||
switch.cmd( ';'.join( 'ifconfig %s up' % intf
|
||||
for intf in switch.intfs.values() ) )
|
||||
info( '.' )
|
||||
info( '\n' )
|
||||
|
||||
def stop( self ):
|
||||
super( MininetCluster, self ).stop()
|
||||
|
||||
Reference in new issue
Block a user