]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd,topotests: log route suppression messages 7345/head
authorRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 22 Oct 2020 00:48:43 +0000 (21:48 -0300)
committerRafael Zalamena <rzalamena@opensourcerouting.org>
Thu, 22 Oct 2020 16:52:06 +0000 (13:52 -0300)
To see the messages activate the BGP debug: `debug bgp updates`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
bgpd/bgp_route.c
tests/topotests/bgp_aggregate_address_topo1/r1/bgpd.conf

index c47b6105847b4c19c7f1af8e22bd1c51d3213c9a..1edcbc39b6ac138a1ce06f68dbafd4460103e2d9 100644 (file)
@@ -6257,6 +6257,10 @@ static bool aggr_suppress_path(struct bgp_aggregate *aggregate,
 
        /* Only mark for processing if suppressed. */
        if (listcount(pie->aggr_suppressors) == 1) {
+               if (BGP_DEBUG(update, UPDATE_OUT))
+                       zlog_debug("aggregate-address suppressing: %pFX",
+                                  bgp_dest_get_prefix(pi->net));
+
                bgp_path_info_set_flag(pi->net, pi, BGP_PATH_ATTR_CHANGED);
                return true;
        }
@@ -6280,6 +6284,10 @@ static bool aggr_unsuppress_path(struct bgp_aggregate *aggregate,
 
        /* Unsuppress and free extra memory if last item. */
        if (listcount(pi->extra->aggr_suppressors) == 0) {
+               if (BGP_DEBUG(update, UPDATE_OUT))
+                       zlog_debug("aggregate-address unsuppressing: %pFX",
+                                  bgp_dest_get_prefix(pi->net));
+
                list_delete(&pi->extra->aggr_suppressors);
                bgp_path_info_set_flag(pi->net, pi, BGP_PATH_ATTR_CHANGED);
                return true;
index 5fd6e8e83d45de900e9d0b7117d780e139e0e4bc..fa5215008556947f8df2ffc9815a0d2602819f80 100644 (file)
@@ -1,3 +1,5 @@
+debug bgp updates
+!
 access-list acl-sup-one seq 5 permit 192.168.2.1/32
 access-list acl-sup-one seq 10 deny any
 !