]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Do not forget to update conditional advertisements rmaps for peer-groups
authorDonatas Abraitis <donatas@opensourcerouting.org>
Thu, 7 Apr 2022 20:01:02 +0000 (23:01 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Fri, 8 Apr 2022 19:43:01 +0000 (22:43 +0300)
commit9118301e48af0dc0157184554601c767cbd25128
treed351bb1251764bb15580eb786329860b212e4e1b
parentcb48ec5fa1c4b637d695c36a9e4125620083f208
bgpd: Do not forget to update conditional advertisements rmaps for peer-groups

When the peer is configured for the first time:
```
neighbor P1 peer-group
neighbor P1 remote-as external
neighbor P1 advertise-map ADV exist-map EXIST
neighbor 10.10.10.1 peer-group P1
```

Conditional advertisements route-maps are not updated and cond. advertisements
do not work until FRR restarted. BGP sessions clear does not help.

Or even changing peer-group for a peer, causes this bug to kick in.

```
no neighbor 10.10.10.1
neighbor 10.10.10.1 peer-group P2
```

With this fix, cond. advertisements start working immediatelly.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_routemap.c
bgpd/bgpd.c