aboutsummaryrefslogtreecommitdiff
path: root/tests/init-core-openstack.sh
diff options
context:
space:
mode:
authorRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-03-12 19:50:16 +0100
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2023-03-26 09:34:53 +0000
commit7367427338ee4f51624742f882d7780000238ef3 (patch)
tree82ab520ee7b6b84ce8389ddf4abbe71ce7fff5ea /tests/init-core-openstack.sh
parent4971eccd62c6c6b0bd16d9b3b57d503a3891737d (diff)
downloadkolla-ansible-7367427338ee4f51624742f882d7780000238ef3.tar.gz
kolla-ansible-7367427338ee4f51624742f882d7780000238ef3.zip
[CI] Test Neutron with IPv6 networks
Make sure to actually test IPv6 connectivity to our test instance in the IPv6 jobs. Change-Id: I7845448804e191af356e82f8ad33c563ffd8ebd5
Diffstat (limited to 'tests/init-core-openstack.sh')
-rwxr-xr-xtests/init-core-openstack.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/init-core-openstack.sh b/tests/init-core-openstack.sh
index 7d6dd8a9d..e8b9ab3f5 100755
--- a/tests/init-core-openstack.sh
+++ b/tests/init-core-openstack.sh
@@ -13,6 +13,12 @@ function init_runonce {
echo "Initialising OpenStack resources via init-runonce"
KOLLA_DEBUG=1 tools/init-runonce |& gawk '{ print strftime("%F %T"), $0; }' &> /tmp/logs/ansible/init-runonce
+
+ if [[ $IP_VERSION -eq 6 ]]; then
+ # NOTE(yoctozepto): In case of IPv6 there is no NAT support in Neutron,
+ # so we have to set up native routing. Static routes are the simplest.
+ sudo ip route add ${DEMO_NET_CIDR} via ${EXT_NET_DEMO_ROUTER_ADDR}
+ fi
}