From 6f908ded80eeba40a850e8d1f6246fb3ed31e648 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 1 Aug 2019 17:37:05 +0000 Subject: [PATCH] zebra: send interface updates when down 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 --- zebra/if_netlink.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/zebra/if_netlink.c b/zebra/if_netlink.c index df8d4bfe15..4a916bd2c2 100644 --- a/zebra/if_netlink.c +++ b/zebra/if_netlink.c @@ -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); } } -- 2.39.5