use i_subinterfaces to group vlan subinterfaces like link aggregates in device ports view

This commit is contained in:
Oliver Gorwits
2022-08-02 17:42:58 +01:00
parent 7ac5b6c4b7
commit a1aac2777d
8 changed files with 37 additions and 9 deletions

View File

@@ -443,8 +443,12 @@ sub walk_fwtable {
# possibly move node to lag master
if (defined $device_port->slave_of
and exists $device_ports->{$device_port->slave_of}) {
$port = $device_port->slave_of;
$device_ports->{$port}->update({is_uplink => \'true'});
$parent = $device_port->slave_of;
$device_ports->{$parent}->update({is_uplink => \'true'});
# VLAN subinterfaces can be set uplink,
# but we don't want to move nodes there (so check is_master).
$port = $parent if $device_ports->{$parent}->is_master;
}
++$cache->{$vlan}->{$port}->{$mac};