core icon indicating copy to clipboard operation
core copied to clipboard

Enable choosing the interface identifier on interface creation

Open bimbar opened this issue 8 months ago • 2 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/core/blob/master/CONTRIBUTING.md
  • [X] I am convinced that my issue is new after having checked both open and closed issues at https://github.com/opnsense/core/issues?q=is%3Aissue

Is your feature request related to a problem? Please describe.

There are two scenarios:

  • yesterday a customer lost his interfaces in some way I can't quite fathom and then recreated them in the wrong order causing all firewall rules to apply to the wrong interfaces. The only remedy was to grep the correct assignments out of a restored backup and then delete and recreate all interfaces in the right order.
  • Also, in HA scenarios it would be easier to create interfaces, especially on differing hardwares.

Describe the solution you like

On creating an interface, make it possible to either choose the interface id outright, or choose the number X in optX.

Describe alternatives you considered

Creating interfaces in the right order is possible, but especially in the case of non-contiguous numbering, which can happen if an interface is deleted later, this is not very convenient.

Additional context

Discussed it with franco: https://forum.opnsense.org/index.php?topic=40985.0;topicseen

bimbar avatar Jun 11 '24 16:06 bimbar