Revision f11dbe81 mininet/link.py

View differences:

mininet/link.py
97 97
    def updateAddr( self ):
98 98
        """Return IP address and MAC address based on ifconfig.
99 99
        instead of updating ip and mac separately,
100
        use one ifconfig call to do it simultaneously""""
100
        use one ifconfig call to do it simultaneously"""
101 101
        ifconfig = self.ifconfig()
102 102
        ips = self._ipMatchRegex.findall( ifconfig )
103 103
        macs = self._macMatchRegex.findall( ifconfig )
......
118 118
        if setUp:
119 119
            cmdOutput = self.ifconfig( 'up' )
120 120
            if cmdOutput:
121
                error( "Error setting %s up: %s " % ( self.name, cmdOutput )
121
                error( "Error setting %s up: %s " % ( self.name, cmdOutput ) )
122 122
                return False
123 123
            else:
124 124
                return True

Also available in: Unified diff