From 7f0877f05daa09b6a0a80f7bf934e03d5052698e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 22 Aug 2015 23:09:42 +0200 Subject: [PATCH] interfaces: clean neighbors if an interface goes down As we don't delete down interfaces anymore, we must at least clear neighbors correctly. --- src/daemon/lldpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index c47209de..59fa4569 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -413,7 +413,8 @@ lldpd_cleanup(struct lldpd *cfg) lldpd_remote_cleanup(hardware, notify_clients_deletion, 1); lldpd_hardware_cleanup(cfg, hardware); } else - lldpd_remote_cleanup(hardware, notify_clients_deletion, 0); + lldpd_remote_cleanup(hardware, notify_clients_deletion, + !(hardware->h_flags & IFF_RUNNING)); } log_debug("localchassis", "cleanup all chassis"); -- 2.39.5