net/frr: Add remove-private-AS for BGP Neighbors
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
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.
I can give it a shot. I'll work up a PR and get it submitted.
I've created PR #5090 for this.