mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
0953e1aea1
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
21 lines
523 B
Python
21 lines
523 B
Python
#
|
|
# Copyright 2014 Fujitsu Limited.
|
|
# Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
|
|
#
|
|
# This work is licensed under the GNU GPLv2 or later.
|
|
# See the COPYING file in the top-level directory.
|
|
|
|
from ..xmlbuilder import XMLBuilder, XMLProperty
|
|
|
|
|
|
class DomainResource(XMLBuilder):
|
|
"""
|
|
Class for generating <resource> XML
|
|
"""
|
|
|
|
XML_NAME = "resource"
|
|
_XML_PROP_ORDER = ["partition", "fibrechannel_appid"]
|
|
|
|
partition = XMLProperty("./partition")
|
|
fibrechannel_appid = XMLProperty("./fibrechannel/@appid")
|