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:
22
unittest/error-bridgedomain3.yaml
Normal file
22
unittest/error-bridgedomain3.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
test:
|
||||
description: "Interfaces put into the bridge, can't be L3 (so cannot have an address)"
|
||||
errors:
|
||||
expected:
|
||||
- "interface .* has adddress.* but no LCP"
|
||||
- "sub-interface .* has address.* but .* does not have LCP"
|
||||
- "bridgedomain .* member .* has an address"
|
||||
count: 6
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
addresses: [ 192.0.2.1/29 ]
|
||||
GigabitEthernet2/0/0:
|
||||
addresses: [ 192.0.2.9/29 ]
|
||||
sub-interfaces:
|
||||
101:
|
||||
addresses: [ 192.0.2.17/29 ]
|
||||
|
||||
bridgedomains:
|
||||
bd10:
|
||||
description: "Bridge Domain 10"
|
||||
interfaces: [ GigabitEthernet1/0/0, GigabitEthernet2/0/0, GigabitEthernet2/0/0.101 ]
|
Reference in New Issue
Block a user