Add 'state' field to interfaces and sub-interfaces

Assert that children cannot be 'up' of their parent is 'down'. Add tests. Update user-guide.
This commit is contained in:
Pim van Pelt
2022-04-05 11:06:33 +00:00
parent 65de792e35
commit b461ef49bb
10 changed files with 59 additions and 2 deletions

View File

@ -0,0 +1,17 @@
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