19 lines
453 B
YAML
19 lines
453 B
YAML
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 an LCP"
|
|
count: 1
|
|
---
|
|
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 ]
|
|
|