Browse code

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

Drago Rosson authored on 2016/09/27 03:23:23
Showing 1 changed files
... ...
@@ -401,7 +401,10 @@ function _neutron_configure_router_v6 {
401 401
         # IPv6-only clouds in the gate. Please do not remove this without
402 402
         # talking to folks in Infra.
403 403
         for d in $default_v6_route_devs; do
404
-            sudo sysctl -w net.ipv6.conf.$d.accept_ra=2
404
+            # Slashes must be used in this sysctl command because route devices
405
+            # can have dots in their names. If dots were used, dots in the
406
+            # device name would be reinterpreted as a slash, causing an error.
407
+            sudo sysctl -w net/ipv6/conf/$d/accept_ra=2
405 408
         done
406 409
         # Ensure IPv6 forwarding is enabled on the host
407 410
         sudo sysctl -w net.ipv6.conf.all.forwarding=1