From 06b452273a73e3b082d0a858c90c1a31bdb24ae1 Mon Sep 17 00:00:00 2001 From: claudio Date: Tue, 24 Jul 2018 12:58:37 +0000 Subject: [PATCH] Add some debug log messages telling which RIBs and peers get sofreconfigured during reload. OK henning@ --- usr.sbin/bgpd/rde.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 8e51e0541fd..708fbcf2df4 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.400 2018/07/24 10:10:58 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.401 2018/07/24 12:58:37 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -2770,6 +2770,9 @@ rde_reload_done(void) } if (!rde_filter_equal(out_rules, out_rules_tmp, peer, conf->prefixsets)) { + char *p = log_fmt_peer(&peer->conf); + log_debug("out filter change: reloading peer %s", p); + free(p); peer->reconf_out = 1; } } @@ -2793,6 +2796,8 @@ rde_reload_done(void) ribs[rid].in_rules_tmp, NULL, conf->prefixsets)) /* rib is in sync */ break; + log_debug("in filter change: reloading RIB %s", + ribs[rid].name); ribs[rid].state = RECONF_RELOAD; /* FALLTHROUGH */ case RECONF_REINIT: -- 2.20.1