Expand autocreated LCP namelen to all possible (dot1q, qin*) scenarios. Allow manually set LCP to be 15char in length

This commit is contained in:
Pim van Pelt
2022-03-17 00:15:18 +00:00
parent 3663a04cde
commit f921b1721a
4 changed files with 23 additions and 7 deletions

View File

@ -334,6 +334,9 @@ def validate_interfaces(yaml):
if iface_lcp and not lcp.is_unique(yaml, iface_lcp):
msgs.append("interface %s does not have a unique LCP name %s" % (ifname, iface_lcp))
result = False
if iface_lcp and len(iface_lcp)>15:
msgs.append("interface %s has LCP with too long name %s" % (fname, iface_lcp))
result = False
if 'addresses' in iface:
for a in iface['addresses']: