blob: 0d8042d6a6c55a02f86387f981f00933f0bb2208 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
export SECURITYGROUP_NAME='onap_ci_lab'
export VAGRANT_CWD='..'
set_up() {
vagrant up --provision-with=run_playbook_create
vagrant up --provision-with=run_playbook_destroy
}
check() {
local secgrp="$1"
vagrant ssh operator --no-tty -c \
"export OS_CLOUD=openstack; openstack security group list -fcsv" \
| grep "$secgrp" \
|| echo "Security group ${secgrp} not found."
}
set_up >/dev/null # drop provisioning output
check "$SECURITYGROUP_NAME"
|