add delete subnet
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
5a263464e3
commit
1f28301a94
3 changed files with 46 additions and 10 deletions
6
agent.sh
6
agent.sh
|
|
@ -64,7 +64,7 @@ function start_vm {
|
|||
|
||||
function stop_vm {
|
||||
DEFINE_string 'vm_name' '-' 'VM NAME' 'm'
|
||||
DEFINE_string 'vpc_name' '-' 'VPC NAME' 'c'
|
||||
DEFINE_string 'subnet_name' '-' 'Subnet NAME' 's'
|
||||
DEFINE_boolean 'dryrun' false 'Enable dry-run mode' 'd'
|
||||
|
||||
FLAGS "$@" || exit $?
|
||||
|
|
@ -73,10 +73,10 @@ function stop_vm {
|
|||
# delete qemu
|
||||
# check how many qemu in subnet
|
||||
# if qemu number = 0
|
||||
# delete subnet
|
||||
delete_subnet "${FLAGS_subnet_name}"
|
||||
# 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