diff options
author | jim-p <jimp@pfsense.org> | 2010-11-30 13:13:39 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-11-30 13:15:18 -0500 |
commit | d2b20ab6d0eb84f2f5702da5cb1dff669133942e (patch) | |
tree | 68a4cf50d48a7fc38dfd1a7bdbe26283516c49f5 /etc | |
parent | 78b9421422e86c20c8e64bebfa0d0a45b4c111dc (diff) | |
download | pfsense-d2b20ab6d0eb84f2f5702da5cb1dff669133942e.zip pfsense-d2b20ab6d0eb84f2f5702da5cb1dff669133942e.tar.gz |
Store upgraded monitor IPs in gateway items, not accidentally as bogus interfaces. This was causing some configs to upgrade and then get stuck in a reassignment loop after the next reboot.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index dd4eba5..47f96a1 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -1667,10 +1667,11 @@ function upgrade_053_to_054() { $monitor = $split[1]; /* on static upgraded configuration we automatically prepend GW_ */ $static_name = "GW_" . strtoupper($interface); - if(is_ipaddr($monitor)) { - $interface = $static_name; - $config['interfaces'][$interface]['monitorip'] = $monitor; - } + if(is_ipaddr($monitor)) + foreach ($a_gateways as & $gw) + if ($gw['name'] == $static_name) + $gw['monitor'] = $monitor; + /* on failover increment tier. Else always assign 1 */ if($lbpool['behaviour'] == "failover") { $i++; |