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

feature #1118: Add default port to sheepdog domains

(cherry picked from commit b2fda993380b4c72a2a6d959e57d9ba1faa6d79c)
This commit is contained in:
Ruben S. Montero 2015-02-12 13:05:43 +01:00
parent b78eea3cb3
commit 816ed7f628

View File

@ -539,8 +539,8 @@ int LibVirtDriver::deployment_description_kvm(
<< "\t\t\t</auth>" << endl;
}
}
else if ( type == "SHEEPDOG" || type == "SHEEPDOG_CDROM" )
{
else if ( type == "sheepdog" || type == "sheepdog_cdrom" )
{
if (type == "SHEEPDOG")
{
file << "\t\t<disk type='network' device='disk'>" << endl;
@ -556,7 +556,8 @@ int LibVirtDriver::deployment_description_kvm(
{
file << "-" << vm->get_oid() << "-" << disk_id;
}
do_network_hosts(file, sheepdog_host, "tcp");
do_network_hosts(file, sheepdog_host, "tcp", -1);
}
else if ( type == "GLUSTER" || type == "GLUSTER_CDROM" )
{