Skip to content

Commit

Permalink
[agent] always keep autoneg=true for mgmt interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Frostman committed Aug 14, 2024
1 parent e81bd15 commit e881f03
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/agent/dozer/bcm/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -2444,7 +2444,13 @@ func planPortAutoNegs(agent *agentapi.Agent, spec *dozer.Spec) error {
continue
}

iface.AutoNegotiate = pointer.To(autoNegDefault[name])
val := pointer.To(autoNegDefault[name])

if strings.HasPrefix(name, "M") {
val = pointer.To(true)
}

iface.AutoNegotiate = val
}

for name, autoNeg := range agent.Spec.Switch.PortAutoNegs {
Expand Down

0 comments on commit e881f03

Please sign in to comment.