socallinuxexpo / scale-network

SCaLE's on-site expo network configurations, wifi, tooling, and scripts
https://www.socallinuxexpo.org/
BSD 3-Clause "New" or "Revised" License
40 stars 16 forks source link

Create trunk types and use them to define VLAN lists for trunks #745

Open owendelong opened 3 months ago

owendelong commented 3 months ago

Description

Currently, there is much (error prone) repetition of VLAN lists in trunk definitions. Really, we only have a few different list contents that are valid and they could (arguably should) be defined as trunk classes, then the trunk definition should reference those classes instead of listing individual VLANs.

Acceptance Criteria

There are multiple possible implementations:

  1. Strictly use only one class in TRUNK/FIBER commands
  2. Strictly use only a class list in TRUNK/FIBER commands (would require de-duping the resulting expansion)
  3. Allow both classes and VLAN names as valid content for such commands (also would require deduping)

My personal current inclination is option 1. If anyone feels differently, please comment here and let's discuss.