diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 925c8a0..b2b2a2b 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1531,7 +1531,12 @@ function upgrade_053_to_054() { $split = split("\|", $member); $interface = $split[0]; $monitor = $split[1]; - if($lbpool['behaviour'] == "failover") { $i++; } + /* on failover increment tier. Else always assign 1 */ + if($lbpool['behaviour'] == "failover") { + $i++; + } else { + $i = 1; + } $gateway_group['item'][] = "$interface|$i"; $config['interfaces'][$interface]['monitorip'] = "$monitor"; } |