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:
19
unittest/error-bridgedomain1.yaml
Normal file
19
unittest/error-bridgedomain1.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
test:
|
||||
description: "Interfaces put into the bridge, must exist as phy or sub-interface"
|
||||
errors:
|
||||
expected:
|
||||
- "bridgedomain .* member .* doesn't exist"
|
||||
count: 2
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
description: "This is the wrong interface, the bridge has Gi1/0/1, not Gi1/0/0"
|
||||
GigabitEthernet2/0/0:
|
||||
sub-interfaces:
|
||||
101:
|
||||
description: "This is the wrong interface, the bridge has Gi2/0/0.100, not Gi2/0/0.101"
|
||||
|
||||
bridgedomains:
|
||||
bd10:
|
||||
description: "Bridge Domain 10"
|
||||
interfaces: [ GigabitEthernet1/0/1, GigabitEthernet2/0/0.100 ]
|
Reference in New Issue
Block a user