Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chdxD1 committed Nov 15, 2024
1 parent 37e9f07 commit 2e40948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/nl/layer2.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 2e40948

Please sign in to comment.