Skip to content

Commit

Permalink
Merge pull request avocado-framework#3890 from smitterl/add_input_type
Browse files Browse the repository at this point in the history
libvirt_xml/input: add type attribute
  • Loading branch information
chunfuwen authored Apr 12, 2024
2 parents ccf1dd8 + 7be9e16 commit 61b33ee
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion virttest/libvirt_xml/devices/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,15 @@


class Input(base.TypedDeviceBase):
__slots__ = ("input_bus", "model", "address", "source_evdev", "driver", "alias")
__slots__ = (
"input_bus",
"input_type",
"model",
"address",
"source_evdev",
"driver",
"alias",
)

def __init__(self, type_name, virsh_instance=base.base.virsh):
super(Input, self).__init__(
Expand All @@ -23,6 +31,14 @@ def __init__(self, type_name, virsh_instance=base.base.virsh):
tag_name="input",
attribute="bus",
)
accessors.XMLAttribute(
property_name="input_type",
libvirtxml=self,
forbidden=None,
parent_xpath="/",
tag_name="input",
attribute="type",
)
accessors.XMLAttribute(
property_name="model",
libvirtxml=self,
Expand Down

0 comments on commit 61b33ee

Please sign in to comment.