diff --git a/mininet/net.py b/mininet/net.py index a3ff824ea74f325c7f11e46c85ff85cda4c2d769..2d44af31799847ffbc8a82d1275b1c458951d9c8 100755 --- a/mininet/net.py +++ b/mininet/net.py @@ -340,7 +340,6 @@ def configHosts( self ): # quietRun( 'renice +18 -p ' + repr( host.pid ) ) # This may not be the right place to do this, but # it needs to be done somewhere. - host.cmd( 'ifconfig lo up' ) info( '\n' ) def buildFromTopo( self, topo=None ): diff --git a/mininet/node.py b/mininet/node.py index a6786f59755492a56f4e20504967667237bbd97d..333dfe70c28c3fa633608bb1e217541a9017f67e 100644 --- a/mininet/node.py +++ b/mininet/node.py @@ -923,7 +923,6 @@ def start( self, controllers ): for c in controllers ] ) ofdlog = '/tmp/' + self.name + '-ofd.log' ofplog = '/tmp/' + self.name + '-ofp.log' - self.cmd( 'ifconfig lo up' ) intfs = [ str( i ) for i in self.intfList() if not i.IP() ] self.cmd( 'ofdatapath -i ' + ','.join( intfs ) + ' punix:/tmp/' + self.name + ' -d %s ' % self.dpid + @@ -974,7 +973,6 @@ def setup( cls ): def start( self, controllers ): "Start up kernel datapath." ofplog = '/tmp/' + self.name + '-ofp.log' - quietRun( 'ifconfig lo up' ) # Delete local datapath if it exists; # then create a new one monitoring the given interfaces self.cmd( 'ovs-dpctl del-dp ' + self.dp ) @@ -1193,7 +1191,6 @@ def start( self, controllers ): logfile = '/tmp/ivs.%s.log' % self.name - self.cmd( 'ifconfig lo up' ) self.cmd( ' '.join(args) + ' >' + logfile + ' 2>&1 </dev/null &' ) def stop( self ): @@ -1233,7 +1230,6 @@ def __init__( self, name, inNamespace=False, command='controller', self.protocol = protocol Node.__init__( self, name, inNamespace=inNamespace, ip=ip, **params ) - self.cmd( 'ifconfig lo up' ) # Shouldn't be necessary self.checkListening() def checkListening( self ):