Add l2xc support, including extensive tests to validate correct usage of the feature

This commit is contained in:
Pim van Pelt
2022-03-15 20:45:27 +00:00
parent b9a7bb697e
commit c5872880fe
9 changed files with 246 additions and 0 deletions

18
unittest/error-l2xc5.yaml Normal file
View File

@ -0,0 +1,18 @@
test:
description: "L2 cross connect from a phy cannot also have sub-interfaces"
errors:
expected:
- "interface .* l2xc so it cannot have sub-interfaces"
count: 1
---
interfaces:
GigabitEthernet1/0/0:
l2xc: GigabitEthernet1/0/1.100
sub-interfaces:
100:
description: "If the parent is cross connected, it should not have sub-interfaces"
GigabitEthernet1/0/1:
sub-interfaces:
100:
l2xc: GigabitEthernet1/0/0