From b34d459bbc100e65fbc308438b3b7f72bd5fb5b6 Mon Sep 17 00:00:00 2001 From: Drago Rosson Date: Mon, 26 Sep 2016 13:23:23 -0500 Subject: [PATCH] Allow default IPv6 route device names to have dots When dots are used with sysctl, they are reinterpreted as slashes. Route devices can have dots in their names, so when they are used in a sysctl command that also uses dots, its dot will be replaced with a slash, causing an error. Change-Id: Ie32126a3aa8d646568d7d37ec4874419b9658935 Closes-Bug: #1627770 --- lib/neutron_plugins/services/l3 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/neutron_plugins/services/l3 b/lib/neutron_plugins/services/l3 index 408b322702..8c26b2b199 100644 --- a/lib/neutron_plugins/services/l3 +++ b/lib/neutron_plugins/services/l3 @@ -401,7 +401,10 @@ function _neutron_configure_router_v6 { # IPv6-only clouds in the gate. Please do not remove this without # talking to folks in Infra. for d in $default_v6_route_devs; do - sudo sysctl -w net.ipv6.conf.$d.accept_ra=2 + # Slashes must be used in this sysctl command because route devices + # can have dots in their names. If dots were used, dots in the + # device name would be reinterpreted as a slash, causing an error. + sudo sysctl -w net/ipv6/conf/$d/accept_ra=2 done # Ensure IPv6 forwarding is enabled on the host sudo sysctl -w net.ipv6.conf.all.forwarding=1