Bugfix: Run vppcfg plan --novpp cleanly with bondethernet and MAC addresses

This commit is contained in:
Pim van Pelt
2023-02-25 13:15:24 +01:00
parent b890a08c7e
commit 8cf915e873

View File

@ -1017,10 +1017,11 @@ class Reconciler:
if not member_iface or member_ifname not in vpp_members: if not member_iface or member_ifname not in vpp_members:
if ( if (
len(vpp_members) == 0 len(vpp_members) == 0
and member_iface
and member_iface.l2_address != "00:00:00:00:00:00" and member_iface.l2_address != "00:00:00:00:00:00"
): ):
bondmac = member_iface.l2_address bondmac = member_iface.l2_address
cli = f"bond add {config_bond_ifname} {member_iface.interface_name}" cli = f"bond add {config_bond_ifname} {member_ifname}"
self.cli["sync"].append(cli) self.cli["sync"].append(cli)
if ( if (
vpp_iface vpp_iface