Add a set of bridgedomain unit tests, including a fully formed correct one. Fix one bug found along the way!

This commit is contained in:
Pim van Pelt
2022-03-13 18:55:00 +00:00
parent 6ce6718b34
commit 527b1ca95b
6 changed files with 131 additions and 1 deletions

View File

@ -0,0 +1,21 @@
test:
description: "In a BridgeDomain, all members must have the same MTU as the bridge itself"
errors:
expected:
- "bridgedomain .* member .* has MTU (2000|3000|500), while bridge has 1500"
count: 3
---
interfaces:
GigabitEthernet1/0/0:
mtu: 2000
GigabitEthernet2/0/0:
mtu: 3000
sub-interfaces:
101:
mtu: 500
bridgedomains:
bd10:
description: "Bridge Domain 10"
mtu: 1500
interfaces: [ GigabitEthernet1/0/0, GigabitEthernet2/0/0, GigabitEthernet2/0/0.101 ]