Move unittest YAML files into their own directory, pending more python unit tests in a followup commit
This commit is contained in:
17
unittest/yaml/error-subinterface5.yaml
Normal file
17
unittest/yaml/error-subinterface5.yaml
Normal file
@ -0,0 +1,17 @@
|
||||
test:
|
||||
description: "Sub-interface with addresses must have an LCP. Gi1/0/0 does this wrong, while Gi2/0/0 does it correctly"
|
||||
errors:
|
||||
expected:
|
||||
- "sub-interface .* has an address but .* does not have LCP"
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
sub-interfaces:
|
||||
100:
|
||||
addresses: [ 192.0.2.1/24 ]
|
||||
GigabitEthernet2/0/0:
|
||||
lcp: "xe2-0-0"
|
||||
sub-interfaces:
|
||||
100:
|
||||
addresses: [ 192.168.1.1/24 ]
|
||||
|
Reference in New Issue
Block a user