Skip to content

net/frr: add BGP maximum-paths support for ECMP multipath#5340

Merged
Monviech merged 1 commit intoopnsense:masterfrom
maxfield-allison:feature/bgp-maximum-paths
Mar 27, 2026
Merged

net/frr: add BGP maximum-paths support for ECMP multipath#5340
Monviech merged 1 commit intoopnsense:masterfrom
maxfield-allison:feature/bgp-maximum-paths

Conversation

@maxfield-allison
Copy link
Copy Markdown
Contributor

@maxfield-allison maxfield-allison commented Mar 21, 2026

Important notices
Before you submit a pull request, we ask you kindly to acknowledge the following:

If AI was used, please disclose:

  • Model used: N/A
  • Extent of AI involvement: N/A

Related issue
Resolves #4878


Describe the problem
BGP maximum-paths and maximum-paths ibgp cannot be configured through the OPNsense GUI. Users must apply these settings via vtysh directly, which are then lost whenever the GUI "Apply" button is clicked and FRR regenerates its configuration.


Describe the proposed solution
Adds maximum-paths and maximum-paths ibgp support to the BGP address-family configuration, enabling ECMP multipath for both EBGP and IBGP peers.

Changes:

  • Model (BGP.xml): two optional IntegerFields (range 1–128) after bestpath
  • Form (bgp.xml): two advanced-mode fields on the BGP General tab
  • Template (bgpd.conf): renders maximum-paths [ibgp] N inside the address-family loop
  • Makefile/pkg-descr: version bump to 1.52

Follows the same pattern as the local-as addition in #5308.


@Monviech
Copy link
Copy Markdown
Member

Don't delete the PR template.

@rcmurphy
Copy link
Copy Markdown

Would love to see this merged! Am hacking my config files to accomplish this right now, which I deeply dislike.

@maxfield-allison you have merge conflicts 🙁

@maxfield-allison maxfield-allison force-pushed the feature/bgp-maximum-paths branch from ecb3bb4 to 7acfc33 Compare March 24, 2026 22:10
@maxfield-allison
Copy link
Copy Markdown
Contributor Author

Should be good to merge now.

@Monviech
Copy link
Copy Markdown
Member

Monviech commented Mar 25, 2026

I'll give it a look this or next week. Thanks.

Would also need docs like the other PR you referenced.

@Monviech Monviech self-assigned this Mar 25, 2026
@Monviech Monviech added the feature Adding new functionality label Mar 25, 2026
Copy link
Copy Markdown
Member

@Monviech Monviech 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, just some general nitpicks.

To merge this, a docs PR is a requirement to update the new fields in it. It's not a requirement to explain how to use this (well, you could if you feel generous :)

@maxfield-allison
Copy link
Copy Markdown
Contributor Author

Thanks for the review @Monviech. Applied all four suggestions and force-pushed.

Docs PR: opnsense/docs#864

Copy link
Copy Markdown
Member

@Monviech Monviech 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 thanks :)

@Monviech Monviech merged commit d0d9a7f into opnsense:master Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Adding new functionality

Development

Successfully merging this pull request may close these issues.

os-frr / BGP maximum-paths / ECMP

3 participants