From 3663a04cdec1c37a80cb8d6ed56c28843132689d Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Wed, 16 Mar 2022 23:57:47 +0000 Subject: [PATCH] Bugfix: check sub_iface instead of iface --- validator/interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validator/interface.py b/validator/interface.py index 2fd8b4a..9c1ae3a 100644 --- a/validator/interface.py +++ b/validator/interface.py @@ -386,7 +386,7 @@ def validate_interfaces(yaml): if sub_lcp and len(sub_lcp)>15: msgs.append("sub-interface %s has LCP with too long name %s" % (sub_ifname, sub_lcp)) result = False - if iface_lcp and not lcp.is_unique(yaml, iface_lcp): + if sub_lcp and not lcp.is_unique(yaml, sub_lcp): msgs.append("sub-interface %s does not have a unique LCP name %s" % (sub_ifname, sub_lcp)) result = False sub_mtu = get_mtu(yaml, sub_ifname)