Actually an interface is detstroyed here no need for this merge!
Revert "Mergee3cffd6cef
- Properly remove IPv6 carp vips as reported from https://forum.pfsense.org/index.php?topic=84392.0" This reverts commite5e16cfc96
.
This commit is contained in:
parent
e5e16cfc96
commit
64cda11e81
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue