add volume info in agent
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
9153ef1011
commit
5a263464e3
1 changed files with 2 additions and 0 deletions
2
agent.sh
2
agent.sh
|
|
@ -24,6 +24,7 @@ function start_vm {
|
|||
DEFINE_string 'subnet_name' '-' 'SUBNET NAME' 's'
|
||||
DEFINE_string 'vm_name' '-' 'VM NAME' 'm'
|
||||
DEFINE_string 'vm_ip' '-' 'VM CIDR' 'p'
|
||||
DEFINE_string 'volume_id' '-' 'Volume backend file' 'o'
|
||||
DEFINE_boolean 'dryrun' false 'Enable dry-run mode' 'd'
|
||||
|
||||
FLAGS "$@" || exit $?
|
||||
|
|
@ -49,6 +50,7 @@ function start_vm {
|
|||
print_in_color "${COLOR_SYAN}" "vm:"
|
||||
print_in_color "${COLOR_SYAN}" " name: ${FLAGS_vm_name}"
|
||||
print_in_color "${COLOR_SYAN}" " ip: ${vm_ip}"
|
||||
print_in_color "${COLOR_SYAN}" " volume backing file: ${FLAGS_volume_id}"
|
||||
print_in_color "${COLOR_SYAN}" " tap: to generate"
|
||||
print_in_color "${COLOR_SYAN}" "#############################################"
|
||||
echo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue