UUID from the XML description if present when creating the domain.
Daniel
+Thu Jul 13 23:33:48 CEST 2006 Daniel Veillard <veillard@redhat.com>
+
+ * src/xml.c: applied patch from Peter Vetere to pass down the
+ UUID from the XML description if present when creating the domain.
+
Tue Jul 11 18:03:51 CEST 2006 Daniel Veillard <veillard@redhat.com>
* configure.in libvirt.spec.in docs/* NEWS: preparing release of
Requires: xen
Requires: libxml2
Requires: readline
+Requires: ncurses
BuildRequires: libxml2-devel
BuildRequires: readline-devel
+BuildRequires: ncurses-devel
Obsoletes: libvir
ExclusiveArch: i386 x86_64
}
xmlXPathFreeObject(obj);
+ obj = xmlXPathEval(BAD_CAST "string(/domain/uuid[1])", ctxt);
+ if ((obj == NULL) || (obj->type == XPATH_STRING) &&
+ (obj->stringval != NULL) && (obj->stringval[0] != 0)) {
+ virBufferVSprintf(&buf, "(uuid '%s')", obj->stringval);
+ }
+ xmlXPathFreeObject(obj);
+
obj = xmlXPathEval(BAD_CAST "string(/domain/bootloader[1])", ctxt);
if ((obj != NULL) && (obj->type == XPATH_STRING) &&
(obj->stringval != NULL) && (obj->stringval[0] != 0)) {