Skip to content

Commit

Permalink
Merge pull request #3768 from nanli1/add_support_for_memballon_autode…
Browse files Browse the repository at this point in the history
…flate_attribute

add support for memballon autodeflate
  • Loading branch information
chunfuwen committed Oct 25, 2023
2 parents 6ce0d7b + c877bee commit 222746a
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 222746a

Please sign in to comment.