Sorry, This is a missed patch. Since Domain_XENPV was default value and in resource adding method it is not set causing the script will be added xml string, so change the default value to UNKNOWN. > It should not be default as XENPV, which will bring trouble when this > value is > not set. One case is script section in bridge xml generation, in resource add > method it will be always added since this value is XENPV, so change it to > unknown. > > Signed-off-by: Wenchao Xia <[email protected]> > --- > libxkutil/device_parsing.h | 7 ++++--- > 1 files changed, 4 insertions(+), 3 deletions(-) > > diff --git a/libxkutil/device_parsing.h b/libxkutil/device_parsing.h > index d652f0f..6f6b0b4 100644 > --- a/libxkutil/device_parsing.h > +++ b/libxkutil/device_parsing.h > @@ -147,10 +147,11 @@ struct lxc_os_info { > }; > > struct domain { > - enum { DOMAIN_XENPV, > + enum { DOMAIN_UNKNOWN, > + DOMAIN_XENPV, > DOMAIN_XENFV, > - DOMAIN_KVM, > - DOMAIN_QEMU, > + DOMAIN_KVM, > + DOMAIN_QEMU, > DOMAIN_LXC } type; > char *name; > char *typestr; /*xen, kvm, etc */ >
-- Best Regards Wenchao Xia _______________________________________________ Libvirt-cim mailing list [email protected] https://www.redhat.com/mailman/listinfo/libvirt-cim
