Skip to content

Add FRR BGP Confederation Options/Fields#5569

Open
Napsterbater wants to merge 4 commits into
opnsense:masterfrom
Napsterbater:master
Open

Add FRR BGP Confederation Options/Fields#5569
Napsterbater wants to merge 4 commits into
opnsense:masterfrom
Napsterbater:master

Conversation

@Napsterbater

Copy link
Copy Markdown

Important notices

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

If AI was used, please disclose:

  • Model used: Gemini
  • Extent of AI involvement: Assisted for finding relevant files to modify, guided relevant changes and tweaks during testing.

Describe the problem

Unable to use FRR in OPNsense with in a BGP Confederations without these options.


Describe the proposed solution

Add 2 fields and relevant validation and config generation to add the two config lines to the FRR service.


Related issue

#2202


I have already made these changes locally, and from my limited testing it works as intended.

The BGP.php was the trickiest, and not sure if that was the best or only way to deal with that.

One other minor thing I noticed with this, when using the Copy then Paste buttons on the Confederation Peers, it's only copying the first. Not sure how to fix that, assuming minor change.

Add bgp.confed_asn and bgp.confed_peers fields.
Added field definitions, validation to BGP.xml and modified BGP.php to validate that both fields are mutually required, and present error if not.
Added FRR BGP Confederation to config file generation.
Fix minor formatting issue, 1 Tab missing on line 14.
@Monviech

Copy link
Copy Markdown
Member

We recently added this:
b57967f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants