Hi I'm using RB2011 as terminal router and I made terrible mistake of using gigabit interface for WAN even though it's only 60/6 DSL. All other 4 gigabit ports are used for machines capable of producing gigabit traffic. Now one gigabit socket got physically damaged and doesn't work so I need 1 more free gigabit interface. Obvious solution would be to just swap ether1 with lets say ether9 as it shouldn't be bottleneck anyways but router has pretty beefy config (1400 lines compact export) so I can't just manually change all interfaces in all places as it'd be extremely prone to some mistake potentially resulting in catastrophic security vulnerability.
How can I swap interfaces programmatically? I thought about just using sed on config export and then re-import it back but maybe there's better option.