diff options
author | Ermal <eri@pfsense.org> | 2011-02-01 19:09:37 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-02-01 19:09:37 +0000 |
commit | 4e8c89fdbedce2188da48f8db1c0dfe83df36435 (patch) | |
tree | 5119615d6f02bc65a24b9b387e3ee2523ffcfa4e /usr | |
parent | 20fef17c7398170e18c9d03bcc04ee794002e981 (diff) | |
download | pfsense-4e8c89fdbedce2188da48f8db1c0dfe83df36435.zip pfsense-4e8c89fdbedce2188da48f8db1c0dfe83df36435.tar.gz |
Allow ipalias with carp as parent interface to be synchronized.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/xmlrpc.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/xmlrpc.php b/usr/local/www/xmlrpc.php index ea0166b..ebb3a24 100755 --- a/usr/local/www/xmlrpc.php +++ b/usr/local/www/xmlrpc.php @@ -171,7 +171,7 @@ function restore_config_section_xmlrpc($raw_params) { // Then add ipalias and proxyarp types already defined on the backup if (is_array($vipbackup)) { foreach ($vipbackup as $vip) { - if (($vip['mode'] == 'ipalias') || ($vip['mode'] == 'proxyarp')) + if ((($vip['mode'] == 'ipalias') || ($vip['mode'] == 'proxyarp')) && substr($vip['interface'], 0, 3) != "vip") array_unshift($config['virtualip']['vip'], $vip); } } @@ -226,8 +226,16 @@ function merge_config_section_xmlrpc($raw_params) { foreach ($config['virtualip']['vip'] as $vip) interface_vip_bring_down($vip); } + $vipbackup = $config['virtualip']['vip']; } $config = array_merge_recursive_unique($config, $params[0]); + // Then add ipalias and proxyarp types already defined on the backup + if (is_array($vipbackup)) { + foreach ($vipbackup as $vip) { + if ((($vip['mode'] == 'ipalias') || ($vip['mode'] == 'proxyarp')) && substr($vip['interface'], 0, 3) != "vip") + array_unshift($config['virtualip']['vip'], $vip); + } + } $mergedkeys = implode(",", array_keys($params[0])); write_config("Merged in config ({$mergedkeys} sections) from XMLRPC client."); interfaces_vips_configure(); |