add delete subnet

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2025-05-08 11:42:30 +02:00
commit 1f28301a94
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
3 changed files with 46 additions and 10 deletions

View file

@ -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}"
}