Page MenuHomeVyOS Platform

Bridge: Addition/Deletion of allowed-vlans on bridge member is slow
Open, LowPublic

Description

Ranges that are configured in allowed-vlans (e.g. 1-4094), are deconstructed into all of their individual VLANs, which is unnecessary for the execution of these:
bridge vlan add dev {interface} vid {vlan} master
bridge vlan del dev {interface} vid {vlan} master

This leads to a very long commit time when doing large ranges.

Example:
Execution time of allowed-vlans 1-4094 in current state: 38.94 seconds

Execution time of allowed-vlans 1-4094 without unnecessary deconstruction of range: 4.94 seconds

Details

Version
1.4, 1.5
Is it a breaking change?
Perfectly compatible
Issue type
Performance optimization