[Libvirt-cim] [PATCH] [TEST]Adding xml_get_net_bridge() function which returns the bridge info associated with domain

Deepti B Kalakeri deeptik at linux.vnet.ibm.com
Wed Apr 9 12:31:03 UTC 2008


This patch should be applied after applying the patch submitted by Zhen 
Gang, with the subject line ".#3 add a try..except to get_value_xpath()".

Thanks and Regards,
Deepti.

Deepti B. Kalakeri wrote:
> # HG changeset patch
> # User Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
> # Date 1207743568 -19800
> # Node ID 55d6e89ebb1ad9ae063814807a8ee8a20cb13656
> # Parent  c1d26f7e6a2223d995264d7cc3f43ec9327b753e
> [TEST]Adding xml_get_net_bridge() function which returns the bridge info associated with domain.
>
> This is required by the 05_RAPF_err.py tc.
>
> Signed-off-by: Deepti B. Kalakeri <deeptik at linux.vnet.ibm.com>
>
> diff -r c1d26f7e6a22 -r 55d6e89ebb1a suites/libvirt-cim/lib/XenKvmLib/vxml.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Wed Apr 09 17:45:41 2008 +0530
> +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py	Wed Apr 09 17:49:28 2008 +0530
> @@ -342,7 +342,11 @@ class VirtXML(Virsh, XMLClass):
>      @_x2str('/domain/devices/interface/mac/@address')
>      def xml_get_net_mac(self):
>          pass
> -    
> +   
> +    def xml_get_net_bridge(self):
> +        bridgeStr = self.get_value_xpath('/domain/devices/interface/source/@bridge')
> +        return bridgeStr
> + 
>      def dumpxml(self, ip):
>          cmd = 'virsh -c %s dumpxml %s' % (self.vuri, self.dname)
>          s, o = utils.run_remote(ip, cmd)
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
>   




More information about the Libvirt-cim mailing list