Skip to content

Commit ffe7f2a

Browse files
abhibongalehjensas
authored andcommitted
Configure adoption_ironic_post_oc subnet with ipv6
We have noticed that uni04delta-ipv6 adoption deploys the OSP17.1 successfully with IPv6 network. But we found out that ironic subnet is configured with IPv4 instead of IPv6. This PR aims to fix it. fixes: OSPRH-20019 Signed-off-by: Abhishek Bongale <[email protected]>
1 parent 242d32a commit ffe7f2a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hooks/playbooks/adoption_ironic_post_oc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
_subnet_alloc_pool_start: '172.20.1.150'
2323
_subnet_alloc_pool_end: '172.20.1.199'
2424
_subnet_ip_version: 4
25+
_subnet_ipv6_address_mode: null
26+
_subnet_ipv6_ra_mode: null
2527
_provider_physical_network: ironic
2628
_provider_network_type: flat
2729
tasks:
@@ -153,6 +155,13 @@
153155
openstack subnet show provisioning-subnet &>/dev/null || \
154156
openstack subnet create provisioning-subnet \
155157
--network provisioning \
158+
--ip-version {{ _subnet_ip_version }} \
159+
{% if _subnet_ipv6_address_mode -%}
160+
--ipv6-address-mode {{ _subnet_ipv6_address_mode }} \
161+
{% endif -%}
162+
{% if _subnet_ipv6_ra_mode -%}
163+
--ipv6-ra-mode {{ _subnet_ipv6_ra_mode }} \
164+
{% endif -%}
156165
--subnet-range {{ _subnet_range }} \
157166
--gateway {{ _subnet_gateway }} \
158167
--allocation-pool start={{ _subnet_alloc_pool_start }},end={{ _subnet_alloc_pool_end }}

0 commit comments

Comments
 (0)