Skip to content

Commit 0c9a6ca

Browse files
committed
Enable accept_ra before enabling forwarding
We need to enable accept_ra before we enable forwarding, otherwise existing addresses and routes may get dropped until the next RA is received, possibly causing connection errors in the meantime. Change-Id: I1fdeede59547de896ed89222ecf121fd9e6b810d
1 parent c6a4c45 commit 0c9a6ca

File tree

1 file changed

+2
-2
lines changed
  • lib/neutron_plugins/services

1 file changed

+2
-2
lines changed

lib/neutron_plugins/services/l3

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,6 @@ function _neutron_configure_router_v6 {
395395

396396
# This logic is specific to using the l3-agent for layer 3
397397
if is_service_enabled q-l3 || is_service_enabled neutron-l3; then
398-
# Ensure IPv6 forwarding is enabled on the host
399-
sudo sysctl -w net.ipv6.conf.all.forwarding=1
400398
# if the Linux host considers itself to be a router then it will
401399
# ignore all router advertisements
402400
# Ensure IPv6 RAs are accepted on interfaces with a default route.
@@ -409,6 +407,8 @@ function _neutron_configure_router_v6 {
409407
# device name would be reinterpreted as a slash, causing an error.
410408
sudo sysctl -w net/ipv6/conf/$d/accept_ra=2
411409
done
410+
# Ensure IPv6 forwarding is enabled on the host
411+
sudo sysctl -w net.ipv6.conf.all.forwarding=1
412412
# Configure and enable public bridge
413413
# Override global IPV6_ROUTER_GW_IP with the true value from neutron
414414
IPV6_ROUTER_GW_IP=$(openstack --os-cloud devstack-admin --os-region "$REGION_NAME" port list -c 'Fixed IP Addresses' | grep $ipv6_pub_subnet_id | awk -F'ip_address' '{ print $2 }' | cut -f2 -d\' | tr '\n' ' ')

0 commit comments

Comments
 (0)