From 816ed7f6288575b3639df93caaa4f4b07c873b78 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Thu, 12 Feb 2015 13:05:43 +0100 Subject: [PATCH] feature #1118: Add default port to sheepdog domains (cherry picked from commit b2fda993380b4c72a2a6d959e57d9ba1faa6d79c) --- src/vmm/LibVirtDriverKVM.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vmm/LibVirtDriverKVM.cc b/src/vmm/LibVirtDriverKVM.cc index 6234e7922e..ef3c50029f 100644 --- a/src/vmm/LibVirtDriverKVM.cc +++ b/src/vmm/LibVirtDriverKVM.cc @@ -539,8 +539,8 @@ int LibVirtDriver::deployment_description_kvm( << "\t\t\t" << endl; } } - else if ( type == "SHEEPDOG" || type == "SHEEPDOG_CDROM" ) - { + else if ( type == "sheepdog" || type == "sheepdog_cdrom" ) + { if (type == "SHEEPDOG") { file << "\t\t" << 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" ) {