Commit bd645970 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) remove get_carp_status

(cherry picked from commit a4335147)
parent 22f9c097
...@@ -143,18 +143,6 @@ function setup_microcode() { ...@@ -143,18 +143,6 @@ function setup_microcode() {
} }
} }
/****f* legacy/get_carp_status
* NAME
* get_carp_status - Return whether CARP is enabled or disabled.
* RESULT
* boolean - true if CARP is enabled, false if otherwise.
******/
function get_carp_status() {
/* grab the current status of carp */
$status = get_single_sysctl('net.inet.carp.allow');
return (intval($status) > 0);
}
/* /*
* get_carp_interface_status($carpinterface): returns the status of a carp ip * get_carp_interface_status($carpinterface): returns the status of a carp ip
*/ */
......
...@@ -34,7 +34,7 @@ require_once("pfsense-utils.inc"); ...@@ -34,7 +34,7 @@ require_once("pfsense-utils.inc");
require_once("interfaces.inc"); require_once("interfaces.inc");
require_once("widgets/include/carp_status.inc"); require_once("widgets/include/carp_status.inc");
$carp_enabled = get_carp_status(); $carp_enabled = (get_single_sysctl('net.inet.carp.allow') > 0);
?> ?>
<table class="table table-striped" width="100%" border="0" cellspacing="0" cellpadding="0" summary="carp status"> <table class="table table-striped" width="100%" border="0" cellspacing="0" cellpadding="0" summary="carp status">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment