# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1215695256 25200
# Node ID 0f8b7f041b91761da40aee3f6574338de6c178fd
# Parent 502dddef8c34eeb85b571df0ee97f0ee0676861b
[TEST] Fixing NetXML .
This is needed bcs the virt type for KVM was not getting passed properly.
Without this on a system with no net-list the for KVM the tc were failing to create a
virtual network.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 502dddef8c34 -r 0f8b7f041b91 suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Tue Jul 01 14:12:48 2008 -0700
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Thu Jul 10 06:07:36 2008 -0700
@@ -485,7 +485,7 @@ class VirtXML(Virsh, XMLClass):
else:
logger.info('No virutal network found')
logger.info('Trying to create one ......')
- netxml = NetXML(CIM_IP, virt_type)
+ netxml = NetXML(CIM_IP, virt=virt_type)
ret = netxml.create_vnet()
if not ret:
logger.error('Failed to create the virtual network
"%s"',