Skip to content

Commit

Permalink
add support for memballon autodeflate
Browse files Browse the repository at this point in the history
Signed-off-by: nanli <[email protected]>
  • Loading branch information
nanli1 committed Sep 20, 2023
1 parent 3f16a5c commit c877bee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virttest/libvirt_xml/devices/memballoon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='/',
Expand Down

0 comments on commit c877bee

Please sign in to comment.