mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #776. reload even ipalias type of vip when reloading carps and do not destroy cloned interfaces on interface bring down.
This commit is contained in:
parent
83463e1e99
commit
89830b60dc
@ -1607,16 +1607,21 @@ function interface_reload_carps($cif) {
|
||||
foreach ($viparr as $vip) {
|
||||
if (in_array($vip['carpif'], $carps)) {
|
||||
switch ($vip['mode']) {
|
||||
case "carp":
|
||||
case "carp":
|
||||
interface_vip_bring_down($vip);
|
||||
sleep(1);
|
||||
interface_carp_configure($vip);
|
||||
break;
|
||||
case "carpdev-dhcp":
|
||||
case "carpdev-dhcp":
|
||||
interface_vip_bring_down($vip);
|
||||
sleep(1);
|
||||
interface_carpdev_configure($vip);
|
||||
break;
|
||||
case "ipalias":
|
||||
interface_vip_bring_down($vip);
|
||||
sleep(1);
|
||||
interface_ipalias_configure($vip);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2246,7 +2251,7 @@ function interface_configure($interface = "wan", $reloadall = false) {
|
||||
if (!$g['booting']) {
|
||||
/* remove all IPv4 addresses */
|
||||
while (mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " -alias", true) == 0);
|
||||
interface_bring_down($interface, true);
|
||||
interface_bring_down($interface);
|
||||
}
|
||||
|
||||
/* wireless configuration? */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user