summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-10-23 13:38:15 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-10-23 13:38:15 -0400
commita71b32d2495680306f22dff95855da79e35ec56c (patch)
treedca231bda47b908adfabaf2081635c07ce5977bd /etc
parent27625b391f1118697477d0cd024710c7779b37a2 (diff)
downloadpfsense-a71b32d2495680306f22dff95855da79e35ec56c.zip
pfsense-a71b32d2495680306f22dff95855da79e35ec56c.tar.gz
Unbreak CARP Enable/Disable button
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index 30e57cc..806dc51 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2315,6 +2315,18 @@ function find_ip_interface($ip)
}
/*
+ * find_number_of_created_carp_interfaces: return the number of carp interfaces
+ */
+function find_number_of_created_carp_interfaces() {
+ return `/sbin/ifconfig | grep "carp:" | wc -l`;
+}
+
+function get_all_carp_interfaces() {
+ $ints = str_replace("\n", " ", `ifconfig | grep "carp:" -B2 | grep ": flag" | cut -d: -f1`);
+ return $ints;
+}
+
+/*
* find_carp_interface($ip): return the carp interface where an ip is defined
*/
function find_carp_interface($ip) {
OpenPOWER on IntegriCloud