Skip to content

Commit

Permalink
Merge pull request #8906 from ton31337/fix/bgp_default_originate_with…
Browse files Browse the repository at this point in the history
…draw_7.3

bgpd: [7.3] withdraw default route when route-map has no match
  • Loading branch information
donaldsharp committed Jun 23, 2021
2 parents 97935a2 + 9e4948b commit c5a0f3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_updgrp_adv.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,9 @@ void subgroup_default_originate(struct update_subgroup *subgrp, int withdraw)
*/
for (rn = bgp_table_top(bgp->rib[afi][safi]); rn;
rn = bgp_route_next(rn)) {
if (!bgp_node_has_bgp_path_info_data(rn))
continue;

ret = route_map_apply(peer->default_rmap[afi][safi].map,
&rn->p, RMAP_BGP, &bpi_rmap);

Expand Down

0 comments on commit c5a0f3b

Please sign in to comment.