diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-07-22 12:22:33 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-07-22 12:22:34 +0000 |
| commit | b59ade75e5343ac43475afbd123c3ce6b0058357 (patch) | |
| tree | e8b35e524adc4704e0131e696c0753ca24da496f /openstackclient/compute | |
| parent | 831301e5d6caaab06c8dcc7a5a6a0c21d033caa9 (diff) | |
| parent | cf20225347766240a2ebb155e6e46b85f84a3ddc (diff) | |
| download | python-openstackclient-b59ade75e5343ac43475afbd123c3ce6b0058357.tar.gz | |
Merge "Support to get server rdp/serial/mks type console url"
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/console.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/openstackclient/compute/v2/console.py b/openstackclient/compute/v2/console.py index 74bed441..02be99d5 100644 --- a/openstackclient/compute/v2/console.py +++ b/openstackclient/compute/v2/console.py @@ -96,6 +96,27 @@ class ShowConsoleURL(command.ShowOne): const='spice-html5', help=_("Show SPICE console URL") ) + type_group.add_argument( + '--rdp', + dest='url_type', + action='store_const', + const='rdp-html5', + help=_("Show RDP console URL"), + ) + type_group.add_argument( + '--serial', + dest='url_type', + action='store_const', + const='serial', + help=_("Show serial console URL"), + ) + type_group.add_argument( + '--mks', + dest='url_type', + action='store_const', + const='webmks', + help=_("Show WebMKS console URL"), + ) return parser def take_action(self, parsed_args): @@ -110,6 +131,12 @@ class ShowConsoleURL(command.ShowOne): data = server.get_vnc_console(parsed_args.url_type) if parsed_args.url_type in ['spice-html5']: data = server.get_spice_console(parsed_args.url_type) + if parsed_args.url_type in ['rdp-html5']: + data = server.get_rdp_console(parsed_args.url_type) + if parsed_args.url_type in ['serial']: + data = server.get_serial_console(parsed_args.url_type) + if parsed_args.url_type in ['webmks']: + data = server.get_mks_console() if not data: return ({}, {}) |
