Skip to content

Commit

Permalink
Merge pull request #47 from stackhpc/internal-routers
Browse files Browse the repository at this point in the history
Support routers without an external gateway
  • Loading branch information
markgoddard authored Aug 14, 2024
2 parents d3b6b63 + 37c2d33 commit 233a0c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: stackhpc
name: openstack
version: 0.2.1
version: 0.2.2
readme: README.md
authors:
- StackHPC Ltd
Expand Down
3 changes: 2 additions & 1 deletion roles/os_networks/tasks/router_workaround.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
cloud: "{{ os_networks_cloud | default(omit) }}"
interface: "{{ os_networks_interface | default(omit, true) }}"
register: _networks_query
when: item.network is defined

- name: Ensure router is registered with neutron
openstack.cloud.router:
Expand All @@ -26,7 +27,7 @@
interface: "{{ os_networks_interface | default(omit, true) }}"
name: "{{ item.name }}"
interfaces: "{{ item.interfaces | default(omit) }}"
network: "{{ _networks_query.networks[0].id }}"
network: "{{ _networks_query.networks[0].id if _networks_query is not skipped else omit }}"
external_fixed_ips: "{{ item.external_fixed_ips | default(omit) }}"
project: "{{ item.project | default(omit) }}"
state: "{{ item.state | default(omit) }}"

0 comments on commit 233a0c9

Please sign in to comment.