From bfdc2a8c2b08bce8cde7fcee75587fc7a6871172 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 30 Dec 2012 11:05:55 +0100 Subject: [PATCH] lldpd: cleanup phase is done in `update_local_ports()` Cleaning up unused ports and chassis is really part of updating local ports process. --- src/daemon/lldpd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/daemon/lldpd.c b/src/daemon/lldpd.c index 00ff4f7e..53bec842 100644 --- a/src/daemon/lldpd.c +++ b/src/daemon/lldpd.c @@ -911,6 +911,7 @@ lldpd_update_localports(struct lldpd *cfg) hardware->h_flags = 0; interfaces_update(cfg); + lldpd_cleanup(cfg); } void @@ -927,8 +928,6 @@ lldpd_loop(struct lldpd *cfg) LOCAL_CHASSIS(cfg)->c_cap_enabled = 0; log_debug("loop", "update information for local ports"); lldpd_update_localports(cfg); - log_debug("loop", "cleanup pass"); - lldpd_cleanup(cfg); log_debug("loop", "update information for local chassis"); lldpd_update_localchassis(cfg); log_debug("loop", "send appropriate PDU on all interfaces"); -- 2.39.5