# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207647488 25200
# Node ID 6ec8fdc414f8c86160a8c578465901c77e8cfcc0
# Parent 851b6729397e782b7ac6fbadee849ee7da9b16d3
[TEST] Change KVM default network type to bridge
The original 'user' is not listed in provider code for valid check.
(Consider update provider, too?)
This fix the SettingsDefine failure on recent KVM run.
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r 851b6729397e -r 6ec8fdc414f8 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Mon Apr 07 08:27:46 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Tue Apr 08 02:38:08 2008 -0700
@@ -501,9 +501,10 @@ class KVMXML(VirtXML):
self.add_sub_node(disk, 'source', file=disk_img)
self.add_sub_node(disk, 'target', dev=disk_dev)
- interface = self.add_sub_node(devices, 'interface', type='user')
+ interface = self.add_sub_node(devices, 'interface',
type='bridge')
self.add_sub_node(interface, 'mac', address=net_mac)
-
+ self.set_bridge(CIM_IP)
+
def set_emulator(self, emu):
return self._set_emulator(emu)