Openstack

From I Will Fear No Evil
Revision as of 10:55, 17 June 2026 by Chubbard (talk | contribs) (Created page with "== 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 <pre> 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 va...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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