Skip to content

Commit 93e4178

Browse files
committed
video: add resolution sub element
Signed-off-by: Dan Zheng <dzheng@redhat.com>
1 parent 27a366f commit 93e4178

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

virttest/libvirt_xml/devices/video.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class Video(base.UntypedDeviceBase):
2121
"acceleration",
2222
"address",
2323
"driver",
24+
"resolution",
2425
)
2526

2627
def __init__(self, virsh_instance=base.base.virsh):
@@ -50,4 +51,7 @@ def __init__(self, virsh_instance=base.base.virsh):
5051
)
5152
accessors.XMLElementDict("address", self, parent_xpath="/", tag_name="address")
5253
accessors.XMLElementDict("driver", self, parent_xpath="/", tag_name="driver")
54+
accessors.XMLElementDict(
55+
"resolution", self, parent_xpath="/model", tag_name="resolution"
56+
)
5357
super(Video, self).__init__(device_tag="video", virsh_instance=virsh_instance)

0 commit comments

Comments
 (0)