diff options
author | Petr Benes <w.benny@outlook.com> | 2020-07-16 14:55:17 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-07-16 14:52:03 -0400 |
commit | 2862b682928d1162929c7e41d5251194d778c687 (patch) | |
tree | a9c91918ccdb69c427dfbcf5e331061d489ffa20 /virtinst | |
parent | 8a085bfea1b932129a4c92db7da30bda5c528c5b (diff) | |
download | virt-manager-2862b682928d1162929c7e41d5251194d778c687.tar.gz |
cli: Add --graphics websocket= support
Add a --graphics websocket option to configure VNC WebSocket port
as described in https://libvirt.org/formatdomain.html#elementsGraphics
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Diffstat (limited to 'virtinst')
-rw-r--r-- | virtinst/cli.py | 1 | ||||
-rw-r--r-- | virtinst/devices/graphics.py | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/virtinst/cli.py b/virtinst/cli.py index e6c65d38..a2c869cb 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3531,6 +3531,7 @@ class ParserGraphics(VirtCLIParser): cls.add_arg("type", "type", cb=cls.set_type_cb) cls.add_arg("port", "port") cls.add_arg("tlsPort", "tlsPort") + cls.add_arg("websocket", "websocket") cls.add_arg("listen", "listen") cls.add_arg("keymap", "keymap", cb=cls.set_keymap_cb) cls.add_arg("password", "passwd") diff --git a/virtinst/devices/graphics.py b/virtinst/devices/graphics.py index c2c880e3..32896f6d 100644 --- a/virtinst/devices/graphics.py +++ b/virtinst/devices/graphics.py @@ -51,7 +51,7 @@ class DeviceGraphics(Device): CHANNEL_TYPE_PLAYBACK = "playback" CHANNEL_TYPE_RECORD = "record" - _XML_PROP_ORDER = ["type", "gl", "_port", "_tlsPort", "autoport", + _XML_PROP_ORDER = ["type", "gl", "_port", "_tlsPort", "autoport", "websocket", "keymap", "_listen", "passwd", "display", "xauth"] @@ -76,6 +76,7 @@ class DeviceGraphics(Device): tlsPort = property(_get_tlsport, _set_tlsport) autoport = XMLProperty("./@autoport", is_yesno=True) + websocket = XMLProperty("./@websocket", is_int=True) channel_main_mode = _get_mode_prop(CHANNEL_TYPE_MAIN) channel_display_mode = _get_mode_prop(CHANNEL_TYPE_DISPLAY) |