Skip to content

Commit

Permalink
Merge pull request #15558 from opensourcerouting/fix/bgp_dynamic_neig…
Browse files Browse the repository at this point in the history
…hbors_default_advertise

bgpd: Update default-originate route-map actual map structure
  • Loading branch information
riw777 authored Mar 19, 2024
2 parents a497c74 + 4f1e2dc commit 8341f64
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bgpd/bgp_routemap.c
Original file line number Diff line number Diff line change
Expand Up @@ -4460,6 +4460,13 @@ static void bgp_route_map_update_peer_group(const char *rmap_name,
filter->map[direct].name)
== 0))
filter->map[direct].map = map;

if (group->conf->default_rmap[afi][safi].name &&
strmatch(group->conf->default_rmap[afi][safi]
.name,
rmap_name))
group->conf->default_rmap[afi][safi].map =
map;
}

if (filter->usmap.name
Expand Down

0 comments on commit 8341f64

Please sign in to comment.