From 2e409487e5b087e8c11556cfcee969e5fbde1379 Mon Sep 17 00:00:00 2001 From: Christopher Dziomba Date: Fri, 15 Nov 2024 13:12:32 +0100 Subject: [PATCH] fix tests --- pkg/nl/layer2.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/nl/layer2.go b/pkg/nl/layer2.go index e55282b..ac9c3e9 100644 --- a/pkg/nl/layer2.go +++ b/pkg/nl/layer2.go @@ -247,9 +247,9 @@ func (n *Manager) reconcileIPAddresses(intf netlink.Link, current, desired []*ne return nil } -func (n *Manager) reconcileEUIAutogeneration(intf netlink.Link, desired []*netlink.Addr) error { +func (n *Manager) reconcileEUIAutogeneration(intfName string, intf netlink.Link, desired []*netlink.Addr) error { enableEUI := len(desired) > 0 - if err := n.setEUIAutogeneration(intf.Attrs().Name, enableEUI); err != nil { + if err := n.setEUIAutogeneration(intfName, enableEUI); err != nil { return fmt.Errorf("error setting EUI autogeneration: %w", err) } if !enableEUI { @@ -317,7 +317,7 @@ func (n *Manager) ReconcileL2(current, desired *Layer2Information) error { } // Reconcile EUI Autogeneration - return n.reconcileEUIAutogeneration(current.bridge, desired.AnycastGateways) + return n.reconcileEUIAutogeneration(current.bridge.Name, current.bridge, desired.AnycastGateways) } func (n *Manager) setMTU(current, desired *Layer2Information) error {