diff options
author | Ermal <eri@pfsense.org> | 2012-05-23 18:56:32 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-05-23 18:56:32 +0000 |
commit | fbda07b9482681a9bf8b7385a62b0d96a1e2a532 (patch) | |
tree | bd7382bfc5fa417b3cd2b6357df109d4aaad28bf /etc | |
parent | d996dfeab2ec40cf3fb44b51811333b40ed5073f (diff) | |
download | pfsense-fbda07b9482681a9bf8b7385a62b0d96a1e2a532.zip pfsense-fbda07b9482681a9bf8b7385a62b0d96a1e2a532.tar.gz |
Do this only for carp type vips
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 53da378..0a71c5d 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -2796,8 +2796,11 @@ function upgrade_085_to_086() { write_config(); if (is_array($config['virtualips']['vip'])) { $vipchg = array(); - foreach ($config['virtualips']['vip'] as $vip) + foreach ($config['virtualips']['vip'] as $vip) { + if ($vip['mode'] != "carp") + continue; $vipchg[$vip['vhid']] = $vip; + } ksort($vipchg); foreach (array_reverse($vipchg) as $vip) file_put_contents("{$g['tmp_path']}/vipreplace", "s/vip{$vip['vhid']}/{$vip['interface']}_vip{$vip['vhid']}/g\n"); |