[Libvirt-cim] [PATCH] [TEST] Fix order XenFV args are passed to VirtCIM __init__()

Sharad Mishra snmishra at us.ibm.com
Thu Dec 17 01:00:23 UTC 2009


>
> # HG changeset patch
> # User Kaitlin Rupert <karupert at us.ibm.com>
> # Date 1260576721 28800
> # Node ID 4c73bb18cd2d6144debd06135ad8de6e569f6747
> # Parent  ceb3cf5bc4d887de99e59f8c1ca7833ed0550b22
> [TEST] Fix order XenFV args are passed to VirtCIM __init__()
>
> When the acip, pae, and acpi args were added, they were added in the
wrong
> order for XenFV guests.
>
> Signed-off-by: Kaitlin Rupert <karupert at us.ibm.com>
>
> diff -r ceb3cf5bc4d8 -r 4c73bb18cd2d
suites/libvirt-cim/lib/XenKvmLib/vxml.py
> --- a/suites/libvirt-cim/lib/XenKvmLib/vxml.py   Fri Dec 11 16:12:012009
-0800
> +++ b/suites/libvirt-cim/lib/XenKvmLib/vxml.py   Fri Dec 11 16:12:012009
-0800
> @@ -955,7 +955,7 @@
>              logger.error('Error: Disk image does not exist')
>              sys.exit(1)
>          VirtXML.__init__(self, 'xenfv', test_dom, set_uuid(), mem,
vcpus)
> -        VirtCIM.__init__(self, 'XenFV', test_dom, disk, uuid, pae,
> acpi, apic,
> +        VirtCIM.__init__(self, 'XenFV', test_dom, uuid, pae, acpi,
> apic, disk,
>                           disk_file_path, ntype, net_name, mac, vcpus,
mem,
>                           mem_allocunits, emu_type, grstype, address,
>                           is_ipv6_only, port_num,
> @@ -964,6 +964,8 @@
>          self._devices(const.XenFV_default_emulator,
>                        ntype, mac, net_name, disk_file_path, disk)
>
> +        print address, port_num, is_ipv6_only
> +

Do you want to leave the print statement there? I don't mind.

>      def _os(self, os_loader):
>          os = self.get_node('/domain/os')
>          self.add_sub_node(os, 'type', 'hvm')
>
> _______________________________________________
> Libvirt-cim mailing list
> Libvirt-cim at redhat.com
> https://www.redhat.com/mailman/listinfo/libvirt-cim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20091216/ffcce9b6/attachment.htm>


More information about the Libvirt-cim mailing list