]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Do not try to uninstall BFD session if the peer is not established
authorDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 11 Nov 2024 14:49:22 +0000 (16:49 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Mon, 11 Nov 2024 14:49:22 +0000 (16:49 +0200)
commit29eafd32c58c3b6e3ecb6f715aef74a17f22382a
tree4a732387cea15dd0d495d33bd6f21fbe0e451e88
parent6e92e255182229ae5742dbb86abebfd574b5d413
bgpd: Do not try to uninstall BFD session if the peer is not established

Having something like:

```
 neighbor 192.168.1.222 ebgp-multihop 32
 neighbor 192.168.1.222 update-source 192.168.1.5
 neighbor 192.168.1.222 bfd
```

Won't work and the result is (empty):

```
$ show bfd peers
BFD Peers:
```

bgp_stop() is called in BGP FSM multiple times (even at startup) that
causes intermediate session interruption when update-source/ebgp-multihop
is triggered.

With this fix, the ordering does not matter and the BFD session's parameters
are updated correctly.

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