mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:37:21 +00:00
bgpd: Update default-originate route-map actual map structure
If using with `bgp listen range ... peer-group x`, default_rmap[afi][safi] is not
updated, and after the hard-reset in other side, this is flushed and never updated
again without restarting the sender BGP daemon.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
(cherry picked from commit 4f1e2dcd7a
)
This commit is contained in:
parent
b24011a87b
commit
1df7992d7d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user