Openstack
Jump to navigation
Jump to search
Openstack Notes and Examples
Find the subnets of the Floating IP addresses via loop
- chatGPT derived
- Note the sed to strip out the python style list result
for NET in $(openstack network list --external -f value -c ID); do
echo "Network: $(openstack network show "$NET" -f value -c name)"
openstack network show "$NET" -f value -c subnets |
sed "s/[][]//g; s/'//g; s/, /\n/g" |
while read -r SUBNET; do
openstack subnet show "$SUBNET" -f value -c name -c cidr -c allocation_pools
done
done