Skip to content

Conversation

@danielwaugh-v
Copy link

Fixes #140

  • Updated verify_interface_has_no_vlan_assigned() to treat VLAN 1 as default state
  • VLAN 1 is now considered equivalent to 'no VLANs assigned' during cleanup
  • Handles both explicit (switchport trunk allowed vlan 1) and implicit VLAN 1 configs
  • Prevents '[FAIL] VLAN(s) ALL removal failed' errors on subsequent reservations
  • Added comprehensive unit tests covering various VLAN 1 configuration scenarios

This fix resolves the issue where some Cisco switches show 'switchport trunk allowed vlan 1' in their default configuration state, causing VLAN connectivity setup to fail after teardown, while other switches don't show it (implied).

Fixes QualiSystems#140

- Updated verify_interface_has_no_vlan_assigned() to treat VLAN 1 as default state
- VLAN 1 is now considered equivalent to 'no VLANs assigned' during cleanup
- Handles both explicit (switchport trunk allowed vlan 1) and implicit VLAN 1 configs
- Prevents '[FAIL] VLAN(s) ALL removal failed' errors on subsequent reservations
- Added comprehensive unit tests covering various VLAN 1 configuration scenarios

This fix resolves the issue where some Cisco switches show 'switchport trunk
allowed vlan 1' in their default configuration state, causing VLAN connectivity
setup to fail after teardown, while other switches don't show it (implied).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switchport VLAN 1 Default Condition Causing Failures on Setup

2 participants