From b79ba8382e2205c416d7c4836ac9ee08c72e2c56 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 1 Feb 2012 14:03:49 +0100 Subject: xml: Add element to allow short description of domains This patch adds a new element <title> to the domain XML. This attribute can hold a short title defined by the user to ease the identification of domains. The title may not contain newlines and should be reasonably short. *docs/formatdomain.html.in *docs/schemas/domaincommon.rng - add schema grammar for the new element and documentation *src/conf/domain_conf.c *src/conf/domain_conf.h - add field to hold the new attribute - add code to parse and create XML with the new attribute --- .../qemu-simple-description-title.xml | 27 ++++++++++++++++++++++ tests/qemuxml2argvdata/qemuxml2argv-minimal.xml | 5 ++++ 2 files changed, 32 insertions(+) create mode 100644 tests/domainschemadata/qemu-simple-description-title.xml (limited to 'tests') diff --git a/tests/domainschemadata/qemu-simple-description-title.xml b/tests/domainschemadata/qemu-simple-description-title.xml new file mode 100644 index 000000000..a8a9cac45 --- /dev/null +++ b/tests/domainschemadata/qemu-simple-description-title.xml @@ -0,0 +1,27 @@ +<domain type='qemu'> + <name>qemu-demo</name> + <uuid>603cc28c-9841-864e-0949-8cc7d3bae9f8</uuid> + <memory>65536</memory> + <currentMemory>65536</currentMemory> + <title>A short description of this domain + + A longer explanation that this domain is a test domain + for validating domain schemas. + + 1 + + hvm + + + + + + + + destroy + restart + restart + + /usr/bin/qemu-kvm + + diff --git a/tests/qemuxml2argvdata/qemuxml2argv-minimal.xml b/tests/qemuxml2argvdata/qemuxml2argv-minimal.xml index 2f13d46a0..51eb59a5e 100644 --- a/tests/qemuxml2argvdata/qemuxml2argv-minimal.xml +++ b/tests/qemuxml2argvdata/qemuxml2argv-minimal.xml @@ -1,6 +1,11 @@ QEMUGuest1 c7a5fdbd-edaf-9455-926a-d65c16db1809 + A description of the test machine. + + A test of qemu's minimal configuration. + This test also tests the description and title elements. + 219100 219100 1 -- cgit v1.2.3-65-gdbad