Assert that a QinX cannot have higher MTU than its intermediate interface

This commit is contained in:
Pim van Pelt
2022-03-26 17:18:10 +00:00
parent 40c6b2d1c8
commit 7bb9fa5ac8
3 changed files with 19 additions and 5 deletions

View File

@ -2,8 +2,10 @@ test:
description: "MTU of sub-interfaces cannot be higher than their parent"
errors:
expected:
- "sub-interface .* has MTU 9001 higher than parent MTU 9000"
count: 1
- "sub-interface .* has MTU 9001 higher than parent .* MTU 9000"
- "sub-interface .* has MTU 9002 higher than parent .* MTU 9001"
- "sub-interface .* has MTU 9002 higher than parent .* MTU 9000"
count: 3
---
interfaces:
GigabitEthernet1/0/0:
@ -11,3 +13,9 @@ interfaces:
sub-interfaces:
100:
mtu: 9001
200:
encapsulation:
exact-match: True
inner-dot1q: 1234
dot1q: 100
mtu: 9002