Merge pull request #4308 from adharkar/frr-master-bgp_rmap_debug

bgpd: BGP debug for route-map apply
This commit is contained in:
Donald Sharp 2019-05-10 18:42:58 -04:00 committed by GitHub
commit 6ca985317f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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;
}