ovs-save: Preserve IPv6 link-local address on interface save.
authorAlexey I. Froloff <raorn@raorn.name>
Wed, 11 Feb 2015 12:28:52 +0000 (15:28 +0300)
committerBen Pfaff <blp@nicira.com>
Tue, 3 Mar 2015 16:08:20 +0000 (08:08 -0800)
If IPv6 link-local address is removed from interface, it is unable to
receive any IPv6 packets, including Route Advertisements.

In save_interface only skip IPv4 "scope link" addresses.

Signed-off-by: Alexey I. Froloff <raorn@raorn.name>
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-save

index 73895f3..c96501d 100755 (executable)
@@ -100,9 +100,10 @@ save_interfaces () {
                         continue 2
                         ;;
                     scope)
-                        if test "$2" = link; then
+                        if test "$2" = link -a "$family" != inet6; then
                             # Omit route derived from IP address, e.g.
-                            # 172.16.0.0/16 derived from 172.16.12.34.
+                            # 172.16.0.0/16 derived from 172.16.12.34,
+                            # but preserve IPv6 link-local address.
                             continue 2
                         fi
                         ;;