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 {