1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

get_html_console_parameters method (#2973)

This commit is contained in:
sergiojvg 2019-02-27 05:09:07 -06:00 committed by Tino Vázquez
parent abf16afd9d
commit b0879ebbfa

View File

@ -1420,6 +1420,16 @@ class VirtualMachine < VCenterDriver::Template
info_nics
end
#Get required parameters to use VMware HTML Console SDK
#To be used with the following SDK:
#https://code.vmware.com/web/sdk/2.1.0/html-console
#
def get_html_console_parameters
ticket = @item.AcquireTicket( :ticketType => "webmks" )
ticket_parameters = {:ticket => ticket.ticket, :host => ticket.host, :port => ticket.port}
ticket_parameters
end
# Synchronize the OpenNebula VM representation with vCenter VM
#
# if the device exists in vCenter and not in OpenNebula : detach