bugfix: print sub-interface, not phy, in this error message

This commit is contained in:
Pim van Pelt
2022-07-10 14:12:23 +00:00
parent d79efc5a83
commit a644840453
2 changed files with 1 additions and 1 deletions

View File

@ -665,7 +665,7 @@ def validate_interfaces(yaml):
target_mtu = get_mtu(yaml, sub_iface["l2xc"]) target_mtu = get_mtu(yaml, sub_iface["l2xc"])
if target_mtu != sub_mtu: if target_mtu != sub_mtu:
msgs.append( 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 result = False
if not is_l2xc_target_interface_unique(yaml, sub_iface["l2xc"]): if not is_l2xc_target_interface_unique(yaml, sub_iface["l2xc"]):