mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
interfaces - index carp entries by vhid's in legacy_interfaces_details() to ease referencing items.
since the indexes themselves aren't used, it should be safe to change the current list interpretation into a named one, this would ease operations like https://github.com/opnsense/core/pull/5184
This commit is contained in:
parent
519311433d
commit
e44fd48b6a
@ -360,7 +360,7 @@ function legacy_interfaces_details($intf = null)
|
||||
if (empty($result[$current_interface]["carp"])) {
|
||||
$result[$current_interface]["carp"] = array();
|
||||
}
|
||||
$result[$current_interface]["carp"][] = array(
|
||||
$result[$current_interface]["carp"][$line_parts[3]] = array(
|
||||
"status" => $line_parts[1],
|
||||
"vhid" => $line_parts[3],
|
||||
"advbase" => $line_parts[5],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user