Assert that children cannot be 'up' of their parent is 'down'. Add tests. Update user-guide.
18 lines
364 B
YAML
18 lines
364 B
YAML
test:
|
|
description: "A sub-interface cannot be up if its parent is down."
|
|
errors:
|
|
expected:
|
|
- "sub-interface .* cannot be up if parent .* is down"
|
|
count: 1
|
|
---
|
|
interfaces:
|
|
GigabitEthernet1/0/0:
|
|
state: down
|
|
lcp: "e1"
|
|
sub-interfaces:
|
|
100:
|
|
state: up
|
|
encapsulation:
|
|
dot1q: 100
|
|
exact-match: false
|