ia64/xen-unstable

changeset 8216:fd7c4221fc56

Enable multiple NICs for vmx domain by configuration file

Signed-off-by: Xiaofeng Ling <xiaofeng.ling@intel.com>
author kaf24@firebug.cl.cam.ac.uk
date Sat Dec 03 17:59:37 2005 +0100 (2005-12-03)
parents b8ba1bbba882
children fad187cad5bd
files tools/python/xen/xend/image.py tools/python/xen/xm/create.py
line diff
     1.1 --- a/tools/python/xen/xend/image.py	Sat Dec 03 17:58:31 2005 +0100
     1.2 +++ b/tools/python/xen/xend/image.py	Sat Dec 03 17:59:37 2005 +0100
     1.3 @@ -238,7 +238,9 @@ class VmxImageHandler(ImageHandler):
     1.4      # xm config file
     1.5      def parseDeviceModelArgs(self, imageConfig, deviceConfig):
     1.6          dmargs = [ 'cdrom', 'boot', 'fda', 'fdb', 'ne2000', 
     1.7 -                   'localtime', 'serial', 'stdvga', 'isa', 'vcpus' ]
     1.8 +                   'localtime', 'serial', 'stdvga', 'isa', 'vcpus',
     1.9 +                   'nics'
    1.10 +                   ]
    1.11          ret = []
    1.12          for a in dmargs:
    1.13              v = sxp.child_value(imageConfig, a)
     2.1 --- a/tools/python/xen/xm/create.py	Sat Dec 03 17:58:31 2005 +0100
     2.2 +++ b/tools/python/xen/xm/create.py	Sat Dec 03 17:59:37 2005 +0100
     2.3 @@ -543,7 +543,8 @@ def configure_vmx(config_image, vals):
     2.4      """
     2.5      args = [ 'device_model', 'vcpus', 'cdrom', 'boot', 'fda', 'fdb',
     2.6               'localtime', 'serial', 'stdvga', 'isa', 'nographic',
     2.7 -             'vnc', 'vncviewer', 'sdl', 'display', 'ne2000', 'lapic']
     2.8 +             'vnc', 'vncviewer', 'sdl', 'display', 'ne2000', 'lapic',
     2.9 +             'nics']
    2.10      for a in args:
    2.11          if (vals.__dict__[a]):
    2.12              config_image.append([a, vals.__dict__[a]])