plugins icon indicating copy to clipboard operation
plugins copied to clipboard

net/frr: Add remove-private-AS for BGP Neighbors

Open rfrederick opened this issue 1 month ago • 3 comments

Important notices Before you add a new report, we ask you kindly to acknowledge the following:

  • [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
  • [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
  • [x] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe. Have an instance where a BGP neighbor needs to be configured to not be sent private ASNs in outbound updates. From what I see the appropriate option is currently not available in the GUI.

Describe the solution you'd like Inclusion of the remove-private-AS option in the GUI for BGP neighbors.

Command overview:

neighbor <A.B.C.D|X:X::X:X|WORD> remove-private-AS [all] [replace-AS] Remove private ASNs in outbound updates

The parameter all applies removal to all AS numbers

The parameter replace-AS replaces private ASNs with our ASN in outbound updates

Describe alternatives you've considered

Additional context

rfrederick avatar Nov 19 '25 16:11 rfrederick

Should be very simple to add, here is an example

https://github.com/opnsense/plugins/pull/4611/files

Maybe you want to give it a shot? I'll review a PR.

Monviech avatar Dec 09 '25 07:12 Monviech

I can give it a shot. I'll work up a PR and get it submitted.

rfrederick avatar Dec 12 '25 23:12 rfrederick

I've created PR #5090 for this.

rfrederick avatar Dec 15 '25 21:12 rfrederick