summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-18 21:51:30 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-18 21:51:30 +0000
commit467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b (patch)
treebfc8fa1281c3ec48da8efb5e6626f1b70cd5f574 /etc/inc/interfaces.inc
parentaa9fd9e6133d25918b483d956b04f260d8794b4c (diff)
downloadpfsense-467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b.zip
pfsense-467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b.tar.gz
Destroy carp interfaces before config so that after sync deleted interfaces are destroyed
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index e084167..72fc525 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -338,6 +338,9 @@ function interfaces_carp_configure() {
global $g, $config, $debugging;
$carp_instances_counter = 0;
$total_carp_interfaces_defined = find_number_of_created_carp_interfaces();
+ /* destroy previous interfaces */
+ for($x=0; $x<$total_carp_interfaces_defined; $x++)
+ mwexec("/sbin/ifconfig carp{$x} delete");
if(isset($config['system']['developerspew'])) {
$mt = microtime();
echo "interfaces_carp_configure() being called $mt\n";
OpenPOWER on IntegriCloud