Created
December 9, 2019 18:02
-
-
Save niedbalski/66b7daaa164d9858f0c38206e75f71e5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LB_ID="6899b9b1-2bb7-4771-999f-6cced80cc321" | |
LB_DATA=$(neutron lbaas-loadbalancer-show ${LB_ID} --format yaml) | |
LB_LISTENERS_ID=$(echo -e "$LB_DATA" | awk -F'"' '/listeners/ {print $4}') | |
LB_POOL_ID=$(echo -e "$LB_DATA" | awk -F'"' '/pools/ {print $4}') | |
LB_HEALTH_ID=$(neutron lbaas-pool-show ${LB_POOL_ID} | awk '/healthmonitor_id/ {print $4}') | |
neutron lbaas-listener-delete "${LB_LISTENERS_ID}" | |
neutron lbaas-healthmonitor-delete "${LB_HEALTH_ID}" | |
neutron lbaas-pool-delete "${LB_POOL_ID}" | |
neutron lbaas-loadbalancer-delete "${LB_ID}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment