Fix #8465: Preserve default gw when switch to BACKUP
interfaces_carp_set_maintenancemode() calls interface_carp_configure() to each configured CARP and it ends up reconfiguring completely the interface when it's not necessary.
Add a new parameter $maintenancemode_only to interface_carp_configure() and use it to only change advskew to 254 when going to forced maintenance mode and move it back to configured value when leaving
Related issues
Bug #8465: Lost default gateway after recover from failover with CARP VIP and HA
Fix #8465: Preserve default gw when switch to BACKUP
interfaces_carp_set_maintenancemode() calls interface_carp_configure()
to each configured CARP and it ends up reconfiguring completely the
interface when it's not necessary.
Add a new parameter $maintenancemode_only to interface_carp_configure()
and use it to only change advskew to 254 when going to forced
maintenance mode and move it back to configured value when leaving