]> git.proxmox.com Git - mirror_frr.git/commitdiff
zebra: send interface updates when down
authorQuentin Young <qlyoung@cumulusnetworks.com>
Thu, 1 Aug 2019 17:37:05 +0000 (17:37 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 2 Aug 2019 17:20:45 +0000 (17:20 +0000)
When interfaces change while they are up, Zebra sends if_up
notifications with the updated interface info. Change Zebra to send
if_down notifications with interface info when the interface changes
while it is down.

VRRP, at the least, needs these to know about MAC changes while an
interface is down.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
zebra/if_netlink.c

index df8d4bfe1541b1bd0a7e57da9be79ecb31983ac6..4a916bd2c22754885ce852b14737f61bc068d6cb 100644 (file)
@@ -1347,6 +1347,12 @@ int netlink_link_change(struct nlmsghdr *h, ns_id_t ns_id, int startup)
                                                        "Intf %s(%u) has come UP",
                                                        name, ifp->ifindex);
                                        if_up(ifp);
+                               } else {
+                                       if (IS_ZEBRA_DEBUG_KERNEL)
+                                               zlog_debug(
+                                                       "Intf %s(%u) has gone DOW",
+                                                       name, ifp->ifindex);
+                                       if_down(ifp);
                                }
                        }