Enable multiple NICs for vmx domain by configuration file

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-12-03 17:59:37 +01:00
1 parent f2e2149629
commit 5e6cf9a3f2
2 files changed
+5 -2

No files matched your search

+3 -1
View File
@@ -238,7 +238,9 @@ class VmxImageHandler(ImageHandler):
# xm config file
def parseDeviceModelArgs(self, imageConfig, deviceConfig):
dmargs = [ 'cdrom', 'boot', 'fda', 'fdb', 'ne2000',
'localtime', 'serial', 'stdvga', 'isa', 'vcpus' ]
'localtime', 'serial', 'stdvga', 'isa', 'vcpus',
'nics'
]
ret = []
for a in dmargs:
v = sxp.child_value(imageConfig, a)
+2 -1
View File
@@ -543,7 +543,8 @@ def configure_vmx(config_image, vals):
"""
args = [ 'device_model', 'vcpus', 'cdrom', 'boot', 'fda', 'fdb',
'localtime', 'serial', 'stdvga', 'isa', 'nographic',
'vnc', 'vncviewer', 'sdl', 'display', 'ne2000', 'lapic']
'vnc', 'vncviewer', 'sdl', 'display', 'ne2000', 'lapic',
'nics']
for a in args:
if (vals.__dict__[a]):
config_image.append([a, vals.__dict__[a]])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.