fix algo
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
e2d7c921f3
commit
a8fced3ba9
1 changed files with 9 additions and 1 deletions
8
agent.sh
8
agent.sh
|
|
@ -54,6 +54,8 @@ function start_vm {
|
||||||
echo
|
echo
|
||||||
|
|
||||||
create_vpc "${FLAGS_vpc_name}"
|
create_vpc "${FLAGS_vpc_name}"
|
||||||
|
# create volume
|
||||||
|
# create qemu
|
||||||
}
|
}
|
||||||
|
|
||||||
function stop_vm {
|
function stop_vm {
|
||||||
|
|
@ -64,6 +66,12 @@ function stop_vm {
|
||||||
FLAGS "$@" || exit $?
|
FLAGS "$@" || exit $?
|
||||||
eval set -- "${FLAGS_ARGV}"
|
eval set -- "${FLAGS_ARGV}"
|
||||||
|
|
||||||
|
# delete qemu
|
||||||
|
# check how many qemu in subnet
|
||||||
|
# if qemu number = 0
|
||||||
|
# delete subnet
|
||||||
|
# check subnet number in vpc
|
||||||
|
# if subnet number =0
|
||||||
delete_vpc "${FLAGS_vpc_name}"
|
delete_vpc "${FLAGS_vpc_name}"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue