mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
interfaces: fix warning in PHP 8
'group' property not set when parsing, likely also happens for 'remote'.
This commit is contained in:
parent
7607a6d968
commit
8cb79d511b
@ -412,7 +412,9 @@ function legacy_interfaces_details($intf = null)
|
||||
$result[$current_interface]["vxlan"]["local"] = $line_parts[4];
|
||||
if ($line_parts[5] == "group") {
|
||||
$result[$current_interface]["vxlan"]["group"] = $line_parts[6];
|
||||
$result[$current_interface]['vxlan']['remote'] = null;
|
||||
} else {
|
||||
$result[$current_interface]['vxlan']['group'] = null;
|
||||
$result[$current_interface]["vxlan"]["remote"] = $line_parts[6];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user