Actually an interface is detstroyed here no need for this merge!

Revert "Merge e3cffd6cef - Properly remove IPv6 carp vips as reported from https://forum.pfsense.org/index.php?topic=84392.0"

This reverts commit e5e16cfc96.
This commit is contained in:
Ermal LUÇI 2014-11-21 12:10:59 +01:00
parent e5e16cfc96
commit 64cda11e81
1 changed files with 2 additions and 7 deletions

View File

@ -1167,13 +1167,8 @@ function interface_vip_bring_down($vip) {
break;
case "carp":
$vipif = "{$vip['interface']}_vip{$vip['vhid']}";
/* XXX: Is enough to delete ip address? */
if (does_interface_exist($vipif)) {
if (is_ipaddrv6($vip['subnet']))
mwexec("/sbin/ifconfig {$vipif} inet6 " . escapeshellarg($vip['subnet']) . " delete");
else
pfSense_interface_deladdress($vipif, $vip['subnet']);
}
if (does_interface_exist($vipif))
pfSense_interface_destroy($vipif);
break;
}
}