mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-12-22 13:34:07 +03:00
9afe51a0f8
XML Mapping: <domain> ... <keywrap> <cipher name="X" state="X"/> </keywrap> ... </domain> Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Athina Plaskasoviti <athina.plaskasoviti@gmail.com>
20 lines
404 B
Python
20 lines
404 B
Python
from ..xmlbuilder import XMLBuilder, XMLProperty, XMLChildProperty
|
|
|
|
|
|
class _KeyWrap(XMLBuilder):
|
|
|
|
XML_NAME = "cipher"
|
|
_XML_PROP_ORDER = ["name", "state"]
|
|
|
|
name = XMLProperty("./@name")
|
|
state = XMLProperty("./@state", is_onoff=True)
|
|
|
|
|
|
class DomainKeyWrap(XMLBuilder):
|
|
"""
|
|
Class for generating <keywrap> XML
|
|
"""
|
|
XML_NAME = "keywrap"
|
|
|
|
cipher = XMLChildProperty(_KeyWrap)
|