feature #4358: Adds <metadata><vm_xml64> element to the deployment file.

This new element includes de VM template in XML format and base64
encoded
This commit is contained in:
Ruben S. Montero committed 2016-03-03 12:50:06 +01:00
1 parent 6004270685
commit 66bc3ec399
1 file changed
+5
+5
View File
@@ -209,6 +209,8 @@ int LibVirtDriver::deployment_description_kvm(
string default_raw = "";
string data = "";
string vm_xml;
// ------------------------------------------------------------------------
file.open(file_name.c_str(), ios::out);
@@ -1152,6 +1154,9 @@ int LibVirtDriver::deployment_description_kvm(
<< "\t\t<system_datastore>"
<< one_util::escape_xml(vm->get_remote_system_dir())
<< "</system_datastore>\n"
<< "\t\t<vm_xml64>"
<< one_util::escape_xml(one_util::base64_encode(vm->to_xml(vm_xml)))
<< "<vm_xml64>\n"
<< "\t</metadata>\n";
file << "</domain>" << endl;