Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions upi/openstack/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@
# Port names
os_port_api: "{{ os_net_id }}-api-port"
os_port_ingress: "{{ os_net_id }}-ingress-port"
when: os_net_id is defined
10 changes: 10 additions & 0 deletions upi/openstack/down-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
cmd: "openstack port delete {{ ports.stdout_lines | join(' ') }}"
when: ports.stdout != ""

- name: 'List FIPs'
ansible.builtin.command:
cmd: "openstack floating ip list --router {{ os_router}} -f value -c ID"
register: fips

- name: 'Remove the cluster FIPs'
ansible.builtin.command:
cmd: "openstack floating ip delete {{ fips.stdout_lines | join(' ') }}"
when: fips.stdout != ""

- name: 'Remove the cluster router'
openstack.cloud.router:
name: "{{ os_router }}"
Expand Down