From 88763cfbe17bd7682d4f2b8e6342d88fd1a7eb62 Mon Sep 17 00:00:00 2001
From: cody burkard <cody@onlab.us>
Date: Fri, 1 Aug 2014 13:22:02 -0700
Subject: [PATCH] removed more unnecessary ifconfigs

---
 mininet/net.py  | 1 -
 mininet/node.py | 4 ----
 2 files changed, 5 deletions(-)

diff --git a/mininet/net.py b/mininet/net.py
index a3ff824e..2d44af31 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 a6786f59..333dfe70 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 ):
-- 
GitLab