Assert that is_l2() interfaces cannot have LCP or address; Fix consistency on 'be' vs 'have' an LCP.
This commit is contained in:
@ -3,7 +3,8 @@ test:
|
||||
errors:
|
||||
expected:
|
||||
- "bridgedomain .* member .* has an LCP"
|
||||
count: 3
|
||||
- "interface .* is in L2 mode but has LCP name .*"
|
||||
count: 5
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
|
@ -5,7 +5,8 @@ test:
|
||||
- "interface .* has an address but no LCP"
|
||||
- "sub-interface .* has an address but .* does not have LCP"
|
||||
- "bridgedomain .* member .* has an address"
|
||||
count: 6
|
||||
- "interface .* is in L2 mode but has an address"
|
||||
count: 8
|
||||
---
|
||||
interfaces:
|
||||
GigabitEthernet1/0/0:
|
||||
|
@ -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:
|
||||
|
@ -3,7 +3,7 @@ test:
|
||||
errors:
|
||||
expected:
|
||||
- "sub-interface .* l2xc target .* cannot have an address"
|
||||
- "sub-interface .* l2xc target .* cannot be an LCP"
|
||||
- "sub-interface .* l2xc target .* cannot have an LCP"
|
||||
count: 2
|
||||
---
|
||||
interfaces:
|
||||
|
Reference in New Issue
Block a user