]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: BGP debug for route-map apply 4308/head
authorAmeya Dharkar <adharkar@vmware.com>
Fri, 10 May 2019 20:34:08 +0000 (13:34 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Fri, 10 May 2019 20:34:08 +0000 (13:34 -0700)
Display a debug message while sending a BGP route if the route is filtered by a
route-map.
Debug for incoming filtered route is already present.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
bgpd/bgp_route.c

index 02cb72209f808f0b0e2497501007fecd070b8afa..82a395d8e6d20221626b6f588442605616ded855 100644 (file)
@@ -1767,6 +1767,10 @@ int subgroup_announce_check(struct bgp_node *rn, struct bgp_path_info *pi,
                peer->rmap_type = 0;
 
                if (ret == RMAP_DENYMATCH) {
+                       if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
+                               zlog_debug("%s [Update:SEND] %s is filtered by route-map",
+                               peer->host, prefix2str(p, buf, sizeof(buf)));
+
                        bgp_attr_flush(attr);
                        return 0;
                }