Interfaces: Virtual IPs / xmlrpc - skip nosync processing on vips, for https://github.com/opnsense/core/issues/8387

This commit is contained in:
Ad Schellevis 2025-03-02 17:05:33 +01:00
parent 1498728e47
commit 03f96eb008

View File

@ -174,7 +174,7 @@ function restore_config_section_xmlrpc($new_config)
$oldvips = [];
if (isset($new_config['virtualip']['vip']) && isset($config['virtualip']['vip'])) {
foreach ($config['virtualip']['vip'] as $vipindex => $vip) {
if (!empty($vip['vhid'])) {
if (!empty($vip['vhid']) && empty($vip['nosync'])) {
// rc.filter_synchronize only sends CARP VIPs and IP Aliases with a VHID. Keep the rest like it was.
$vipKey = get_unique_vip_key($vip);
$oldvips[$vipKey] = $vip;