diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 15:59:49 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-08-14 15:59:49 +0000 |
commit | dff74baf5fc39c03278ffe1175027eeb63740078 (patch) | |
tree | 77b4988c9db5fde040d53a7343ef9121c0ecff6b /etc | |
parent | 9beb982e0d2de37814579b98a44b273c5014b3ec (diff) | |
download | pfsense-dff74baf5fc39c03278ffe1175027eeb63740078.zip pfsense-dff74baf5fc39c03278ffe1175027eeb63740078.tar.gz |
Invalidate CACHE after CARP changes.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 9509043..935c617 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -52,6 +52,7 @@ function reset_carp() { mwexec("/sbin/ifconfig carp{$x} down"); mwexec("/sbin/ifconfig carp{$x} destroy"); } + find_number_of_created_carp_interfaces(true); sleep(1); mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_configure(); @@ -402,7 +403,7 @@ function is_interface_wireless($interface) { * $tmp - Number of currently created CARP interfaces. ******/ function find_number_of_created_carp_interfaces($flush = false) { - global $carp_interface_count_cache; + global $carp_interface_count_cache; if (!isset($carp_interface_count_cache) or $flush) { $command = "/sbin/ifconfig | /usr/bin/grep \"carp*:\" | /usr/bin/wc -l"; |