From c877beee5c3da20c9588a5466039936ce1e298e9 Mon Sep 17 00:00:00 2001 From: nanli Date: Wed, 20 Sep 2023 16:27:29 +0800 Subject: [PATCH] add support for memballon autodeflate Signed-off-by: nanli --- virttest/libvirt_xml/devices/memballoon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virttest/libvirt_xml/devices/memballoon.py b/virttest/libvirt_xml/devices/memballoon.py index 77ddf2065c..97f87c0097 100644 --- a/virttest/libvirt_xml/devices/memballoon.py +++ b/virttest/libvirt_xml/devices/memballoon.py @@ -10,12 +10,14 @@ class Memballoon(base.UntypedDeviceBase): - __slots__ = ('model', 'stats_period', 'address', 'alias_name', + __slots__ = ('model', 'autodeflate', 'stats_period', 'address', 'alias_name', 'driver') def __init__(self, virsh_instance=base.base.virsh): accessors.XMLAttribute('model', self, parent_xpath='/', tag_name='memballoon', attribute='model') + accessors.XMLAttribute('autodeflate', self, parent_xpath='/', + tag_name='memballoon', attribute='autodeflate') accessors.XMLAttribute('stats_period', self, parent_xpath='/', tag_name='stats', attribute='period') accessors.XMLElementDict('address', self, parent_xpath='/',