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:
21
unittest/error-bridgedomain4.yaml
Normal file
21
unittest/error-bridgedomain4.yaml
Normal 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 ]
|
Reference in New Issue
Block a user