Revision cb58f26c
Added by Ermal Luçi over 15 years ago
etc/inc/interfaces.inc | ||
---|---|---|
757 | 757 |
break; |
758 | 758 |
case "carp": |
759 | 759 |
$vipif = "vip" . $vip['vhid']; |
760 |
if(does_interface_exist("$vipif"))
|
|
761 |
interface_bring_down($vipif);
|
|
760 |
if(does_interface_exist($vipif))
|
|
761 |
mwexec("/sbin/ifconfig {$vipif} destroy");
|
|
762 | 762 |
break; |
763 | 763 |
case "carpdev-dhcp": |
764 | 764 |
$vipif = "vip" . $vip['vhid']; |
765 |
if(does_interface_exist("$vipif"))
|
|
766 |
interface_bring_down($vipif);
|
|
765 |
if(does_interface_exist($vipif))
|
|
766 |
mwexec("/sbin/ifconfig {$vipif} destroy");
|
|
767 | 767 |
break; |
768 | 768 |
} |
769 | 769 |
} |
Also available in: Unified diff
Actually just destroy the interface since carp interfaces will not be handled correctly from interface_bring_down.