# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID fd7c4221fc561c8f450c3fd02a2007d4d36004af
# Parent b8ba1bbba8820d2aebc8599abfb9c581efcf1b8c
Enable multiple NICs for vmx domain by configuration file
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
diff -r b8ba1bbba882 -r fd7c4221fc56 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Sat Dec 3 16:58:31 2005
+++ b/tools/python/xen/xend/image.py Sat Dec 3 16:59:37 2005
@@ -238,7 +238,9 @@
# 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)
diff -r b8ba1bbba882 -r fd7c4221fc56 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py Sat Dec 3 16:58:31 2005
+++ b/tools/python/xen/xm/create.py Sat Dec 3 16:59:37 2005
@@ -543,7 +543,8 @@
"""
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]])
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|