Browse code

Merge "Allow default IPv6 route device names to have dots"

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