Ticket #843. Disable for now bringing down the interface unless we want to destroy it. While this is not all correct this seems to help alleviate problems when the parent is shared on cloned types.

This commit is contained in:
Ermal 2010-09-03 17:59:49 +00:00
parent c12fb6cb54
commit e49a2031bd

View File

@ -867,14 +867,16 @@ function interface_bring_down($interface = "wan", $destroy = false) {
unlink_if_exists("{$g['varetc_path']}/dhclient_{$interface}.conf");
if(does_interface_exist("$realif")) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true);
pfSense_interface_flags($realif, -IFF_UP);
if ($destroy == true)
pfSense_interface_flags($realif, -IFF_UP);
mwexec("/usr/sbin/arp -d -i {$realif} -a");
}
break;
default:
if(does_interface_exist("$realif")) {
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete", true);
pfSense_interface_flags($realif, -IFF_UP);
if ($destroy == true)
pfSense_interface_flags($realif, -IFF_UP);
mwexec("/usr/sbin/arp -d -i {$realif} -a");
}
break;