# HG changeset patch
# User Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
# Node ID ee89df90d516fc2a29e8c4837465deea38ca5902
# Parent 4cd9ae16b3204b8ba82c9b351e1e0e0fdcbfd856
Enable multiple NICs for vmx domain by configuration file
Signed-off-by: Xiaofeng Ling <xiaofeng.ling@xxxxxxxxx>
diff -r 4cd9ae16b320 -r ee89df90d516 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Sat Dec 3 22:28:03 2005 +0800
+++ b/tools/python/xen/xend/image.py Sat Dec 3 22:58:58 2005 +0800
@@ -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 4cd9ae16b320 -r ee89df90d516 tools/python/xen/xm/create.py
--- a/tools/python/xen/xm/create.py Sat Dec 3 22:28:03 2005 +0800
+++ b/tools/python/xen/xm/create.py Sat Dec 3 22:58:58 2005 +0800
@@ -539,7 +539,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]])
-------------------
Ling Xiaofeng(Daniel)
Open Source Technology Center
Intel China Software Center
iNet: 8-752-1243
8621-52574545-1243(O)
xfling@xxxxxxxxxxxxxxxxxxxxx
mul-nics.patch
Description: mul-nics.patch
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|