mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Enable multiple NICs for vmx domain by configuration file
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
This commit is contained in:
1 parent
f2e2149629
commit
5e6cf9a3f2
2 files changed
+5
-2
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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]])
|
||||
|
||||