Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1:kernel-2.6.32
xen
20329-vifname.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 20329-vifname.patch of Package xen
Index: xen-3.3.1-testing/tools/python/xen/xend/image.py =================================================================== --- xen-3.3.1-testing.orig/tools/python/xen/xend/image.py +++ xen-3.3.1-testing/tools/python/xen/xend/image.py @@ -769,9 +769,14 @@ 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) ret.append("-net") - ret.append("tap,vlan=%d,ifname=tap%d.%d,bridge=%s" % - (nics, self.vm.getDomid(), nics-1, bridge)) + ret.append("tap,vlan=%d,ifname=%s,bridge=%s" % + (nics, vifname, bridge)) if nics == 0: ret.append("-net")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor