summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2018-07-24 12:58:38 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2018-07-24 12:58:38 +0000
commit4b46c812f6f6a496678aba3460c72f846381d3f1 (patch)
tree141924eedeb5f5054c2a1b7372569989b3c2acd1 /usr.sbin
parent4de4cf30ef035c1cde0bb2f1b97767493326abda (diff)
Add some debug log messages telling which RIBs and peers get sofreconfigured
during reload. OK henning@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/rde.c7
1 files changed, 6 insertions, 1 deletions
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 <henning@openbsd.org>
@@ -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: