Skip to content

Commit

Permalink
ovs-save: Preserve IPv6 link-local address on interface save.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
raorn authored and blp committed Mar 3, 2015
1 parent 531af54 commit 5052f72
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utilities/ovs-save
Expand Up @@ -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
;;
Expand Down

0 comments on commit 5052f72

Please sign in to comment.