Pass code check
This commit is contained in:
+2
-1
@@ -454,7 +454,8 @@ class RemoteLink( Link ):
|
|||||||
if not addr:
|
if not addr:
|
||||||
result = node.cmd( 'ip link set tap9 name', intf )
|
result = node.cmd( 'ip link set tap9 name', intf )
|
||||||
else:
|
else:
|
||||||
result = node.cmd( 'ip link set tap9 name', intf, 'address', addr )
|
result = node.cmd( 'ip link set tap9 name', intf,
|
||||||
|
'address', addr )
|
||||||
if result:
|
if result:
|
||||||
raise Exception( 'error renaming %s: %s' % ( intf, result ) )
|
raise Exception( 'error renaming %s: %s' % ( intf, result ) )
|
||||||
return tunnel
|
return tunnel
|
||||||
|
|||||||
Reference in New Issue
Block a user