Skip to content

Commit 4ff7f3d

Browse files
authored
Merge pull request #4091 from dzhengfy/support_video_resolution
video: add resolution sub element
2 parents 115a89f + 93e4178 commit 4ff7f3d

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)