# HG changeset patch
# User Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
# Date 1207303516 -19800
# Node ID ee93a545e27b467ac3cf473ace7ffdfd1930d880
# Parent 0142551c8d3cf5f2a3bbdfe835d69c3880be395a
[TEST] Modifying vxml.py to include set_bridge_name().
set_bridge_name() can be used to modify the bridge associated with a domain.
Needed by the 05_RAPF_err.py tc.
Signed-off-by: Deepti B. Kalakeri <deeptik(a)linux.vnet.ibm.com>
diff -r 0142551c8d3c -r ee93a545e27b suites/libvirt-cim/lib/XenKvmLib/vxml.py
--- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py Fri Apr 04 15:26:49 2008 +0530
+++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py Fri Apr 04 15:35:16 2008 +0530
@@ -253,6 +253,9 @@ class VirtXML(Virsh, XMLClass):
def set_mac(self, mac):
self.set_attributes('/domain/devices/interface/mac', address=mac)
+ def set_bridge_name(self, bridgename):
+ self.set_attributes('/domain/devices/interface/source',
bridge=bridgename)
+
def set_diskimg(self, diskimg):
self.set_attributes('/domain/devices/disk/source', file=diskimg)
Show replies by date