From a644840453c0acf211464150c727a70f0db990bf Mon Sep 17 00:00:00 2001 From: Pim van Pelt Date: Sun, 10 Jul 2022 14:12:23 +0000 Subject: [PATCH] bugfix: print sub-interface, not phy, in this error message --- vppcfg/config/interface.py | 2 +- schema.yaml => vppcfg/schema.yaml | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename schema.yaml => vppcfg/schema.yaml (100%) diff --git a/vppcfg/config/interface.py b/vppcfg/config/interface.py index 6ff671a..8f8e9ef 100644 --- a/vppcfg/config/interface.py +++ b/vppcfg/config/interface.py @@ -665,7 +665,7 @@ def validate_interfaces(yaml): target_mtu = get_mtu(yaml, sub_iface["l2xc"]) if target_mtu != sub_mtu: msgs.append( - f"sub-interface {ifname} l2xc target MTU {int(target_mtu)} does not match source MTU {int(sub_mtu)}" + f"sub-interface {sub_ifname} l2xc target MTU {int(target_mtu)} does not match source MTU {int(sub_mtu)}" ) result = False if not is_l2xc_target_interface_unique(yaml, sub_iface["l2xc"]): diff --git a/schema.yaml b/vppcfg/schema.yaml similarity index 100% rename from schema.yaml rename to vppcfg/schema.yaml