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

@ -472,3 +472,13 @@ const char* Nodes::ip(int i) const
{
return use_ipv6 ? IP6[i] : IP[i];
}
int Nodes::start_vm(int node)
{
return(system(start_vm_command[node]));
}
int Nodes::stop_vm(int node)
{
return(system(stop_vm_command[node]));
}