diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-18 21:51:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-18 21:51:30 +0000 |
commit | 467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b (patch) | |
tree | bfc8fa1281c3ec48da8efb5e6626f1b70cd5f574 /etc | |
parent | aa9fd9e6133d25918b483d956b04f260d8794b4c (diff) | |
download | pfsense-467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b.zip pfsense-467c2c89892d6cedfb7db8fa76d3543dd3e2cd2b.tar.gz |
Destroy carp interfaces before config so that after sync deleted interfaces are destroyed
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
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"; |