This commit is contained in:
Pim van Pelt
2024-04-07 18:03:36 +02:00
parent ed2edeb6e8
commit 4e81cae29a

View File

@ -692,7 +692,9 @@ def validate_interfaces(yaml):
f"sub-interface {sub_ifname} unnumbered target {target} cannot be in L2 mode" f"sub-interface {sub_ifname} unnumbered target {target} cannot be in L2 mode"
) )
result = False result = False
if is_unnumbered(yaml, target) or loopback.is_unnumbered(yaml, target): if is_unnumbered(yaml, target) or loopback.is_unnumbered(
yaml, target
):
msgs.append( msgs.append(
f"sub-interface {sub_ifname} unnumbered target {target} cannot also be unnumbered" f"sub-interface {sub_ifname} unnumbered target {target} cannot also be unnumbered"
) )