mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
add get_carp_interface_status($carpinterface): returns the status of a carp ip
This commit is contained in:
parent
b04a6ca448
commit
591afdfd14
@ -141,6 +141,14 @@ function find_ip_interface($ip) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* get_carp_interface_status($carpinterface): returns the status of a carp ip
|
||||
*/
|
||||
function get_carp_interface_status($carpinterface) {
|
||||
$status = exec_command("/sbin/ifconfig {$carpinterface} | grep \"carp:\" | cut -d\" \" -f2");
|
||||
return $status;
|
||||
}
|
||||
|
||||
/*
|
||||
* find_carp_interface($ip): return the carp interface where an ip is defined
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user