diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-12-17 14:17:34 +0100 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-12-18 13:01:40 +0100 |
commit | 6ee1b7eb10290e9732a40771fdaa06cd7a4f9a24 (patch) | |
tree | df6c5fc2f55a826d9bc00d538c4d512e242c0c41 /etc | |
parent | cb565d6dd7cf494a7d62a3de08dc366456f7290f (diff) | |
download | pfsense-6ee1b7eb10290e9732a40771fdaa06cd7a4f9a24.zip pfsense-6ee1b7eb10290e9732a40771fdaa06cd7a4f9a24.tar.gz |
Make sure that when upgrading a balance pool that we always user tier 1, it previously used tier 0 which equals "Do not use".
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"; } |