Add check to ensure combined length of sub-int LCP name is not larger than 15 chars. For the main int, this is ensured already by schema validation

This commit is contained in:
Pim van Pelt
2022-03-13 12:38:54 +00:00
parent e7e957ed5f
commit 29fcdaefe9
2 changed files with 50 additions and 5 deletions

View File

@ -27,6 +27,7 @@ interfaces:
BondEthernet0:
description: "Bond, James Bond!"
mac: 00:01:02:03:04:05
lcp: "bond0"
sub-interfaces:
200:
encapsulation:
@ -37,7 +38,8 @@ interfaces:
202:
encapsulation:
dot1q: 1000
inner-dot1q: 1000
inner-dot1q: 1234
addresses: [ 192.0.2.1/24 ]
203:
encapsulation:
dot1ad: 1000