Skip to content

Commit

Permalink
Merge pull request #8087 from gryf/OCPBUGS-27844
Browse files Browse the repository at this point in the history
OCPBUGS-27844: Fix task for attaching IPv6 subnet to router.
  • Loading branch information
openshift-merge-bot[bot] authored Apr 11, 2024
2 parents 3d90541 + 68aa7e5 commit a6f102c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions upi/openstack/network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,27 @@
ipv6_ra_mode: "{{ os_subnet6_router_advertisements_mode }}"
when: os_subnet6 is defined

- name: 'Create external router'
- name: 'Create external router for IPv4'
openstack.cloud.router:
name: "{{ os_router }}"
network: "{{ os_external_network }}"
interfaces:
- "{{ os_subnet }}"
when: os_external_network is defined and os_external_network|length>0
interfaces: "{{ os_subnet }}"
when:
- os_external_network is defined
- os_external_network|length>0
- os_subnet6 is not defined

- name: 'Add IPv6 subnet to the external router'
- name: 'Create external router for dualstack'
openstack.cloud.router:
name: "{{ os_router }}"
network: "{{ os_external_network }}"
interfaces:
- "{{ os_subnet }}"
- "{{ os_subnet6 }}"
when:
- os_external_network is defined
- os_external_network|length>0
- os_subnet6 is defined
- os_external_network is defined and os_external_network|length>0

- name: 'Create the API port'
openstack.cloud.port:
Expand Down

0 comments on commit a6f102c

Please sign in to comment.