From 14cf84540428d24c6a6d60474315a51ff1b47cb2 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 22 May 2025 14:55:35 +0200 Subject: [PATCH] BGP: Improve log messages in reconfiguration Use separate messages for import / export reload triggered by reconfiguration. --- nest/proto.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nest/proto.c b/nest/proto.c index 14260d633..1aeea96c5 100644 --- a/nest/proto.c +++ b/nest/proto.c @@ -906,14 +906,17 @@ channel_reconfigure(struct channel *c, struct channel_config *cf) if (import_changed && !channel_reloadable(c)) return 0; - if (import_changed || export_changed) - log(L_INFO "Reloading channel %s.%s", c->proto->name, c->name); - if (import_changed) + { + log(L_INFO "Reloading channel %s.%s for import", c->proto->name, c->name); channel_request_reload(c); + } if (export_changed) + { + log(L_INFO "Reloading channel %s.%s for export", c->proto->name, c->name); channel_request_feeding(c); + } done: CD(c, "Reconfigured"); -- 2.47.2