mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
virtinst: handle the guest "title" XML element
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
620bcae93e
commit
0d03f972a3
@ -64,6 +64,7 @@
|
|||||||
<label>barlabel</label>
|
<label>barlabel</label>
|
||||||
<imagelabel>fooimage</imagelabel>
|
<imagelabel>fooimage</imagelabel>
|
||||||
</seclabel>
|
</seclabel>
|
||||||
|
<title>Hey title changed!</title>
|
||||||
<description>Hey desc changed&</description>
|
<description>Hey desc changed&</description>
|
||||||
<memoryBacking>
|
<memoryBacking>
|
||||||
<hugepages/>
|
<hugepages/>
|
||||||
|
@ -104,6 +104,7 @@ class XMLParseTest(unittest.TestCase):
|
|||||||
check("name", "TestGuest", "change_name")
|
check("name", "TestGuest", "change_name")
|
||||||
check("id", None, 1234)
|
check("id", None, 1234)
|
||||||
check("description", None, "Hey desc changed&")
|
check("description", None, "Hey desc changed&")
|
||||||
|
check("title", None, "Hey title changed!")
|
||||||
check("vcpus", 5, 12)
|
check("vcpus", 5, 12)
|
||||||
check("curvcpus", None, 10)
|
check("curvcpus", None, 10)
|
||||||
check("cpuset", "1-3", "1-8,^6", "1-5,15")
|
check("cpuset", "1-3", "1-8,^6", "1-5,15")
|
||||||
|
@ -85,7 +85,7 @@ class Guest(XMLBuilder):
|
|||||||
|
|
||||||
|
|
||||||
_XML_ROOT_NAME = "domain"
|
_XML_ROOT_NAME = "domain"
|
||||||
_XML_PROP_ORDER = ["type", "name", "uuid", "description",
|
_XML_PROP_ORDER = ["type", "name", "uuid", "title", "description",
|
||||||
"maxmemory", "memory", "hugepage", "vcpus", "curvcpus",
|
"maxmemory", "memory", "hugepage", "vcpus", "curvcpus",
|
||||||
"numatune", "bootloader", "os", "features", "cpu", "clock",
|
"numatune", "bootloader", "os", "features", "cpu", "clock",
|
||||||
"on_poweroff", "on_reboot", "on_crash", "emulator", "_devices",
|
"on_poweroff", "on_reboot", "on_crash", "emulator", "_devices",
|
||||||
@ -161,6 +161,7 @@ class Guest(XMLBuilder):
|
|||||||
hugepage = XMLProperty("./memoryBacking/hugepages", is_bool=True)
|
hugepage = XMLProperty("./memoryBacking/hugepages", is_bool=True)
|
||||||
bootloader = XMLProperty("./bootloader")
|
bootloader = XMLProperty("./bootloader")
|
||||||
description = XMLProperty("./description")
|
description = XMLProperty("./description")
|
||||||
|
title = XMLProperty("./title")
|
||||||
emulator = XMLProperty("./devices/emulator")
|
emulator = XMLProperty("./devices/emulator")
|
||||||
|
|
||||||
on_poweroff = XMLProperty("./on_poweroff",
|
on_poweroff = XMLProperty("./on_poweroff",
|
||||||
|
Loading…
Reference in New Issue
Block a user