Patch allows to set target sheepdog host.

Thx to vadikgo

https://github.com/OpenNebula/addon-sheepdog/issues/1
Signed-off-by: Ruben S. Montero <rsmontero@opennebula.org>
(cherry picked from commit 1f3e227ef3)
This commit is contained in:
Fabian Zimmermann authored and Ruben S. Montero committed 2015-02-12 13:07:59 +01:00
1 parent 7204dba0b0
commit b78eea3cb3
1 file changed
+3 -2
+3 -2
View File
@@ -124,6 +124,7 @@ int LibVirtDriver::deployment_description_kvm(
string ceph_host = "";
string ceph_secret = "";
string ceph_user = "";
string sheepdog_host = "";
string gluster_host = "";
string gluster_volume = "";
@@ -443,6 +444,7 @@ int LibVirtDriver::deployment_description_kvm(
gluster_host = disk->vector_value("GLUSTER_HOST");
gluster_volume = disk->vector_value("GLUSTER_VOLUME");
sheepdog_host = disk->vector_value("SHEEPDOG_HOST");
total_bytes_sec = disk->vector_value("TOTAL_BYTES_SEC");
read_bytes_sec = disk->vector_value("READ_BYTES_SEC");
write_bytes_sec = disk->vector_value("WRITE_BYTES_SEC");
@@ -554,8 +556,7 @@ int LibVirtDriver::deployment_description_kvm(
{
file << "-" << vm->get_oid() << "-" << disk_id;
}
file << "'/>" << endl;
do_network_hosts(file, sheepdog_host, "tcp");
}
else if ( type == "GLUSTER" || type == "GLUSTER_CDROM" )
{