Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BGP BFD session things #17410

Merged

Conversation

ton31337
Copy link
Member

Closes #17396
Closes #17408

Use a separate `member` in this case.

Signed-off-by: Donatas Abraitis <[email protected]>
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 <[email protected]>
@frrbot frrbot bot added bgp tests Topotests, make check, etc labels Nov 11, 2024
@tufeigunchu
Copy link

I tested the change but I couldn't get BFD session either when restarting frr, is it ready?

@ton31337
Copy link
Member Author

I tested the change but I couldn't get BFD session either when restarting frr

Can you show show bfd peers, and show bgp neighbor?

Also, show the full config + logs. Because for me (and a topotest added confirms) it works.

@tufeigunchu
Copy link

Your topotest uses ip address in update-source, does it mean that using interface name is not supported?
I test with interface name and it failed.

If BFD is down, we should try to detect the source automatically from the given
interface.

Signed-off-by: Donatas Abraitis <[email protected]>
@ton31337
Copy link
Member Author

@tufeigunchu could you retry with the latest changes (force pushed 1 commit)?

Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@riw777 riw777 merged commit fe56a65 into FRRouting:master Nov 12, 2024
11 checks passed
@ton31337 ton31337 deleted the fix/bgpd_ebgp_multihop_set_unset branch November 12, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bgp master size/L tests Topotests, make check, etc
Projects
None yet
3 participants