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:
20
unittest/error-bridgedomain2.yaml
Normal file
20
unittest/error-bridgedomain2.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
test:
|
||||
description: "Interfaces put into the bridge, can't be L3 (so cannot have an LCP)"
|
||||
errors:
|
||||
expected:
|
||||
- "bridgedomain .* member .* has an LCP"
|
||||
count: 3
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
lcp: "e1-0-0"
|
||||
GigabitEthernet2/0/0:
|
||||
lcp: "e2-0-0"
|
||||
sub-interfaces:
|
||||
101:
|
||||
lcp: "v101"
|
||||
|
||||
bridgedomains:
|
||||
bd10:
|
||||
description: "Bridge Domain 10"
|
||||
interfaces: [ GigabitEthernet1/0/0, GigabitEthernet2/0/0, GigabitEthernet2/0/0.101 ]
|
Reference in New Issue
Block a user