Skip to content

Commit

Permalink
fix for vednor check
Browse files Browse the repository at this point in the history
  • Loading branch information
suredhar committed Oct 30, 2024
1 parent 5457a44 commit 5412078
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,6 @@ var (
ipRange = []uint32{250, 500}

dutAggMac []string
vendor ondatra.Vendor
)

func TestMain(m *testing.M) {
Expand Down Expand Up @@ -461,15 +460,14 @@ func configNonDefaultNetworkInstance(t *testing.T, dut *ondatra.DUTDevice) {
func configureDUT(t *testing.T, dut *ondatra.DUTDevice) []string {

t.Helper()
vendor = dut.Vendor()
fptest.ConfigureDefaultNetworkInstance(t, dut)
if len(dut.Ports()) < 4 {
t.Fatalf("Testbed requires at least 4 ports, got %d", len(dut.Ports()))
}
if len(dut.Ports()) > 4 {
agg2.ateLagCount = uint32(len(dut.Ports()) - 3)
agg3.ateLagCount = 2
if vendor != ondatra.CISCO {
if dut.Vendor() != ondatra.CISCO {
trafficDistributionWeights = []uint64{33, 67}
}
}
Expand Down

0 comments on commit 5412078

Please sign in to comment.