Revision 88763cfb mininet/node.py

View differences:

mininet/node.py
923 923
                            for c in controllers ] )
924 924
        ofdlog = '/tmp/' + self.name + '-ofd.log'
925 925
        ofplog = '/tmp/' + self.name + '-ofp.log'
926
        self.cmd( 'ifconfig lo up' )
927 926
        intfs = [ str( i ) for i in self.intfList() if not i.IP() ]
928 927
        self.cmd( 'ofdatapath -i ' + ','.join( intfs ) +
929 928
                  ' punix:/tmp/' + self.name + ' -d %s ' % self.dpid +
......
974 973
    def start( self, controllers ):
975 974
        "Start up kernel datapath."
976 975
        ofplog = '/tmp/' + self.name + '-ofp.log'
977
        quietRun( 'ifconfig lo up' )
978 976
        # Delete local datapath if it exists;
979 977
        # then create a new one monitoring the given interfaces
980 978
        self.cmd( 'ovs-dpctl del-dp ' + self.dp )
......
1193 1191

  
1194 1192
        logfile = '/tmp/ivs.%s.log' % self.name
1195 1193
        
1196
        self.cmd( 'ifconfig lo up' )
1197 1194
        self.cmd( ' '.join(args) + ' >' + logfile + ' 2>&1 </dev/null &' )
1198 1195

  
1199 1196
    def stop( self ):
......
1233 1230
        self.protocol = protocol
1234 1231
        Node.__init__( self, name, inNamespace=inNamespace,
1235 1232
                       ip=ip, **params  )
1236
        self.cmd( 'ifconfig lo up' )  # Shouldn't be necessary
1237 1233
        self.checkListening()
1238 1234

  
1239 1235
    def checkListening( self ):

Also available in: Unified diff