add start and stop VM functions

This commit is contained in:
Timofey Turenko
2019-02-27 22:34:41 +02:00
parent 9de26b6df0
commit cc3dbeeb6c
3 changed files with 28 additions and 4 deletions

View File

@ -158,6 +158,20 @@ public:
*/
int read_basic_env();
/**
* @brief start_vm Start virtual machine
* @param node Node number
* @return 0 in case of success
*/
int start_vm(int node);
/**
* @brief stop_vm Stop virtual machine
* @param node Node number
* @return 0 in case of success
*/
int stop_vm(int node);
private:
int check_node_ssh(int node);