2014-06-04 10:08:05 +08:00
|
|
|
#
|
|
|
|
# Copyright 2014 Fujitsu Limited.
|
|
|
|
# Chen Hanxiao <chenhanxiao at cn.fujitsu.com>
|
|
|
|
#
|
2018-04-04 21:35:41 +08:00
|
|
|
# This work is licensed under the GNU GPLv2 or later.
|
2018-03-21 03:00:02 +08:00
|
|
|
# See the COPYING file in the top-level directory.
|
2014-06-04 10:08:05 +08:00
|
|
|
|
2018-03-21 03:10:04 +08:00
|
|
|
from ..xmlbuilder import XMLBuilder, XMLProperty
|
2014-06-04 10:08:05 +08:00
|
|
|
|
|
|
|
|
|
|
|
class DomainResource(XMLBuilder):
|
|
|
|
"""
|
|
|
|
Class for generating <resource> XML
|
|
|
|
"""
|
|
|
|
|
2018-03-21 22:53:34 +08:00
|
|
|
XML_NAME = "resource"
|
2021-09-14 23:08:35 +08:00
|
|
|
_XML_PROP_ORDER = ["partition", "fibrechannel_appid"]
|
2014-06-04 10:08:05 +08:00
|
|
|
|
|
|
|
partition = XMLProperty("./partition")
|
2021-09-14 23:08:35 +08:00
|
|
|
fibrechannel_appid = XMLProperty("./fibrechannel/@appid")
|