Environment
Proposed Functionality
Allow specifying minimum VLAN group size when using vlan.vlanlist_to_config.
Currently vlanlist_to_config will not group together two adjecent VLANs. Only groups of 3 or more VLANs are considered for vlan_a-vlan_x format conversion.
Proposal is to add min_group_size argument that would allow caller to control the grouping behavior.
Use Case
As an end user I want to be able to affect the way VLANs in the VLAN list are grouped. Some vendors, in their configuration, group two adjecent VLANs using - between the VLAN ids.
For example VLANs 4,5 would be represented as 4-5.
Example output from the Arista EOS illustrating this use case:
nyc-leaf-01#sh run | in vlan
vlan 4-5,9-10,15,20,30
Environment
Proposed Functionality
Allow specifying minimum VLAN group size when using
vlan.vlanlist_to_config.Currently
vlanlist_to_configwill not group together two adjecent VLANs. Only groups of 3 or more VLANs are considered forvlan_a-vlan_xformat conversion.Proposal is to add
min_group_sizeargument that would allow caller to control the grouping behavior.Use Case
As an end user I want to be able to affect the way VLANs in the VLAN list are grouped. Some vendors, in their configuration, group two adjecent VLANs using
-between the VLAN ids.For example VLANs
4,5would be represented as4-5.Example output from the Arista EOS illustrating this use case: