4
# DANGEROUS!! delete matching neutron networks and routers!
8
if [ -z "$param" ]; then
9
echo "Deletes matching neutron netowrks and routers!"
10
echo "Potentially dangerous, so you must confirm with YES."
11
echo "Usage: delete_osci_networks_and_subnets.sh YES"
14
for i in $(neutron net-list | awk '/osci/ {print $2}'); do
15
if [ "$param" == "YES" ]; then
16
neutron net-delete $i;
18
echo "Dry run, would have deleted net: ${i}!"
21
for i in $(neutron subnet-list | awk '/osci/ {print $2}'); do
22
if [ "$param" == "YES" ]; then
23
neutron subnet-delete $i;
25
echo "Dry run, would have deleted subnet: ${i}!"