mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Added Keymap to GRAPHICS Libvirt and Xen drivers
git-svn-id: http://svn.opennebula.org/one/trunk@675 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
9aa44a7248
commit
86f3232024
@ -65,6 +65,7 @@ int LibVirtDriver::deployment_description(
|
||||
string listen = "";
|
||||
string port = "";
|
||||
string passwd = "";
|
||||
string keymap = "";
|
||||
|
||||
const VectorAttribute * input;
|
||||
|
||||
@ -420,6 +421,7 @@ int LibVirtDriver::deployment_description(
|
||||
listen = graphics->vector_value("LISTEN");
|
||||
port = graphics->vector_value("PORT");
|
||||
passwd = graphics->vector_value("PASSWD");
|
||||
keymap = graphics->vector_value("KEYMAP");
|
||||
|
||||
if ( type == "vnc" || type == "VNC" )
|
||||
{
|
||||
@ -440,6 +442,11 @@ int LibVirtDriver::deployment_description(
|
||||
file << " password='" << passwd << "'";
|
||||
}
|
||||
|
||||
if ( !keymap.empty() )
|
||||
{
|
||||
file << " keymap='" << keymap << "'";
|
||||
}
|
||||
|
||||
file << "/>" << endl;
|
||||
}
|
||||
else
|
||||
|
@ -62,6 +62,7 @@ int XenDriver::deployment_description(
|
||||
string listen = "";
|
||||
string port = "";
|
||||
string passwd = "";
|
||||
string keymap = "";
|
||||
|
||||
const VectorAttribute * raw;
|
||||
string data;
|
||||
@ -343,6 +344,7 @@ int XenDriver::deployment_description(
|
||||
listen = graphics->vector_value("LISTEN");
|
||||
port = graphics->vector_value("PORT");
|
||||
passwd = graphics->vector_value("PASSWD");
|
||||
keymap = graphics->vector_value("KEYMAP");
|
||||
|
||||
if ( type == "vnc" || type == "VNC" )
|
||||
{
|
||||
@ -363,6 +365,11 @@ int XenDriver::deployment_description(
|
||||
file << ",vncpasswd=" << passwd;
|
||||
}
|
||||
|
||||
if ( !keymap.empty() )
|
||||
{
|
||||
file << ",keymap=" << keymap ;
|
||||
}
|
||||
|
||||
file <<"']" << endl;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user