interfaces: fix warning in PHP 8

'group' property not set when parsing, likely also happens for 'remote'.
This commit is contained in:
Franco Fichtner 2022-08-31 20:48:51 +02:00
parent 7607a6d968
commit 8cb79d511b

View File

@ -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];
}
}