Change switch link bringup

This commit is contained in:
Bob Lantz committed 2015-08-10 05:18:29 -07:00
1 parent e9c207ea7b
commit 49a6480e85
1 file changed
+4 -2
+4 -2
View File
@@ -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()