mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fixes #4446 Correct ipalias removal on top of carp during configuration sync.
This commit is contained in:
parent
7926283050
commit
8896fe1ceb
@ -280,7 +280,11 @@ function restore_config_section_xmlrpc($raw_params) {
|
||||
}
|
||||
/* Cleanup remaining old carps */
|
||||
foreach ($oldvips as $oldvipif => $oldvippar) {
|
||||
$oldvipif = get_real_interface($oldvippar['interface']);
|
||||
if (strstr($oldvippar['interface'], '_vip')) {
|
||||
$oldvipif = explode('_vip', $oldvippar['interface']);
|
||||
$oldvipif = $oldvipif[0];
|
||||
} else
|
||||
$oldvipif = get_real_interface($oldvippar['interface']);
|
||||
if (!empty($oldvipif)) {
|
||||
if (is_ipaddrv6($oldvipif))
|
||||
mwexec("/sbin/ifconfig " . escapeshellarg($oldvipif) . " inet6 " . escapeshellarg($oldvipar['subnet']) . " delete");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user