aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python/xen/xend/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/python/xen/xend/image.py')
-rw-r--r--tools/python/xen/xend/image.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py
index f3768b4612..e08417282d 100644
--- a/tools/python/xen/xend/image.py
+++ b/tools/python/xen/xend/image.py
@@ -917,11 +917,7 @@ class HVMImageHandler(ImageHandler):
ret.append("-net")
ret.append("nic,vlan=%d,macaddr=%s,model=%s" %
(nics, mac, model))
- vifname = devinfo.get('vifname')
- if vifname:
- vifname = "tap-" + vifname
- else:
- vifname = "tap%d.%d" % (self.vm.getDomid(), nics-1)
+ vifname = "vif%d.%d-emu" % (self.vm.getDomid(), nics-1)
ret.append("-net")
ret.append("tap,vlan=%d,ifname=%s,bridge=%s" %
(nics, vifname, bridge))