Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
a4335147
Commit
a4335147
authored
Dec 09, 2015
by
Ad Schellevis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(legacy) remove get_carp_status
parent
90ee04ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
pfsense-utils.inc
src/etc/inc/pfsense-utils.inc
+0
-12
carp_status.widget.php
src/www/widgets/widgets/carp_status.widget.php
+1
-1
No files found.
src/etc/inc/pfsense-utils.inc
View file @
a4335147
...
...
@@ -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
*/
...
...
src/www/widgets/widgets/carp_status.widget.php
View file @
a4335147
...
...
@@ -34,7 +34,7 @@ require_once("pfsense-utils.inc");
require_once
(
"interfaces.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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment