# HG changeset patch
# User Sharad Mishra <snmishra(a)us.ibm.com>
# Date 1260230774 28800
# Node ID 47ff422b8de98ad8e60ce08eb2ef7c3218461eed
# Parent 97557bbd149ab83bf48ba597ec951db960f6aa7d
[TEST] (#4) Changes to vsms for IPv6 testcase.
#2: Name changes, ipv6 to ipv6_flag and IsIPv6Only to is_ipv6_only
#3: Changing is_ipv6_only to IsIPv6Only
#4: set Address to None by default.
Signed-off-by: Sharad Mishra <snmishra(a)us.ibm.com>
diff -r 97557bbd149a -r 47ff422b8de9 suites/libvirt-cim/lib/XenKvmLib/vsms.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vsms.py Mon Dec 07 16:05:01 2009 -0800
+++ b/suites/libvirt-cim/lib/XenKvmLib/vsms.py Mon Dec 07 16:06:14 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,12 @@
if ip != None and lport != None:
self.Address = '%s:%s' % (ip, lport)
+ else:
+ self.Address = None
+
+ if ipv6_flag != None:
+ self.IsIPv6Only = ipv6_flag
+
if keymap != None:
self.KeyMap = keymap