Revision c273f490 mininet/link.py

View differences:

mininet/link.py
160 160
        f = getattr( self, method, None )
161 161
        if not f or value is None:
162 162
            return
163
        if type( value ) is list:
163
        if isinstance( value, list ):
164 164
            result = f( *value )
165
        elif type( value ) is dict:
165
        elif isinstance( value, dict ):
166 166
            result = f( **value )
167 167
        else:
168 168
            result = f( value )

Also available in: Unified diff