1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-09-27 13:44:17 +03:00

F #4393: Added resize operation for running VMs

This commit is contained in:
Ruben S. Montero
2016-12-17 19:30:11 +01:00
parent 6f3066ddd1
commit 43df8151ff
7 changed files with 176 additions and 12 deletions

View File

@@ -401,6 +401,19 @@ private:
write_drv("DISKSNAPSHOTCREATE", oid, drv_msg);
}
/**
* Sends a disk resize request to the MAD:
* "RESIZE ID XML_DRV_MSG"
* @param oid the virtual machine id.
* @param drv_msg xml data for the mad operation
*/
void disk_resize (
const int oid,
const string& drv_msg) const
{
write_drv("RESIZEDISK", oid, drv_msg);
}
/**
* Sends a request to update the VM security groups:
* "UPDATESG ID XML_DRV_MSG"