# HG changeset patch
# User Sharad Mishra <snmishra(a)us.ibm.com>
# Date 1259886916 28800
# Node ID be49d6153b0830a04c6e8f7184c847ff7f2ad684
# Parent 9d767d98ffbf90aaf06f714581f210d17cfca9cb
[TEST] (#2) Changes to vsms for IPv6 testcase.
#2: Name changes, ipv6 to ipv6_flag and IsIPv6Only to is_ipv6_only
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 9d767d98ffbf -r be49d6153b08 suites/libvirt-cim/lib/XenKvmLib/vsms.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vsms.py Thu Dec 03 16:35:08 2009 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/vsms.py Thu Dec 03 16:35:16 2009 -0800
@@ -255,7 +255,7 @@
class CIM_GraphicsResourceAllocationSettingData(CIMClassMOF):
- def __init__(self, name, res_sub_type="vnc", ip="127.0.0.1",
+ def __init__(self, name, res_sub_type="vnc", ip=None, ipv6_flag=None,
lport='-1', keymap="en-us", vnc_passwd=None):
self.InstanceID = '%s/graphics' %name
self.ResourceType = RASD_TYPE_GRAPHICS
@@ -266,6 +266,9 @@
if ip != None and lport != None:
self.Address = '%s:%s' % (ip, lport)
+ if ipv6_flag != None:
+ self.is_ipv6_only = ipv6_flag
+
if keymap != None:
self.KeyMap = keymap