Assert that is_l2() interfaces cannot have LCP or address; Fix consistency on 'be' vs 'have' an LCP.

This commit is contained in:
Pim van Pelt
2022-03-22 14:54:09 +00:00
parent 6688c6b243
commit 077d49cb88
5 changed files with 20 additions and 10 deletions

View File

@ -2,11 +2,13 @@ test:
description: "L2 cross connect targets cannot have an IP address or LCP"
errors:
expected:
- "interface .* has l2xc so it cannot be an LCP"
- "interface .* has l2xc so it cannot have an LCP"
- "interface .* has l2xc so it cannot have an address"
- "interface .* l2xc target .* cannot be an LCP"
- "interface .* l2xc target .* cannot have an LCP"
- "interface .* l2xc target .* cannot have an address"
count: 6
- "interface .* is in L2 mode but has LCP name .*"
- "interface .* is in L2 mode but has an address"
count: 9
---
interfaces:
GigabitEthernet1/0/0: