Skip to content

Commit

Permalink
Update otgconfighelpers.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sancheetaroy authored Nov 7, 2024
1 parent 1acb694 commit ec881a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/otg_helpers/otg_config_helpers/otgconfighelpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func ConfigureOtgNetworkInterface(t *testing.T, top gosnappi.Config, ate *ondatr
top.Ports().Add().SetName(a.Name)
}
for _, intf := range a.Interfaces {
ConfigureOtgInterface(t, top, intf, a)
ConfigureOtgInterface(top, intf, a)
}
}
// ConfigureOtgLag configures the aggregate port.
Expand All @@ -80,7 +80,7 @@ func ConfigureOtgLagMemberPort(agg gosnappi.Lag, portID string, a *Port, index i
lagPort.Lacp().SetActorActivity("active").SetActorPortNumber(uint32(index) + 1).SetActorPortPriority(1).SetLacpduTimeout(0)
}
// ConfigureOtgInterface configures the Ethernet for the LAG or subinterface.
func ConfigureOtgInterface(t *testing.T, top gosnappi.Config, intf *InterfaceProperties, a *Port) {
func ConfigureOtgInterface(top gosnappi.Config, intf *InterfaceProperties, a *Port) {
dev := top.Devices().Add().SetName(intf.Name + ".Dev")
eth := dev.Ethernets().Add().SetName(intf.Name + ".Eth").SetMac(intf.Mac)
if a.Islag {
Expand Down

0 comments on commit ec881a8

Please sign in to comment.