mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
bitkeeper revision 1.1159.258.67 (4243f8f4bOCvwTNPuva3gzEiuhWgSw)
fix to xend
This commit is contained in:
1 parent
631181e727
commit
521752c0b7
1 file changed
+2
-1
@@ -39,7 +39,8 @@ def network(op, script=None, bridge=None, antispoof=None):
|
||||
|
||||
def set_vif_name(vif_old, vif_new):
|
||||
if vif_old == vif_new:
|
||||
vif = view_new
|
||||
vif = vif_new
|
||||
return vif
|
||||
if os.system("ip link show %s" % vif_old) == 0:
|
||||
os.system("ip link set %s down" % vif_old)
|
||||
os.system("ip link set %s name %s" % (vif_old, vif_new))
|
||||
|
||||