Merge pull request #10510 from ton31337/fix/rmap_dummy_attr_flush

bgpd: Flush temporary attributes after route-map apply
This commit is contained in:
Igor Ryzhov 2022-02-07 17:40:13 +03:00 committed by GitHub
commit 35215a013a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2200,10 +2200,11 @@ bool subgroup_announce_check(struct bgp_dest *dest, struct bgp_path_info *pi,
if (ret == RMAP_DENYMATCH) {
if (bgp_debug_update(NULL, p, subgrp->update_group, 0))
zlog_debug(
"%s [Update:SEND] %pFX is filtered by route-map",
peer->host, p);
"%s [Update:SEND] %pFX is filtered by route-map '%s'",
peer->host, p,
ROUTE_MAP_OUT_NAME(filter));
bgp_attr_flush(attr);
bgp_attr_flush(&dummy_attr);
return false;
}
}