From 54120784c2ca73221bf2f1bb030a39b1bba174f6 Mon Sep 17 00:00:00 2001 From: suredhar Date: Wed, 30 Oct 2024 13:06:02 +0530 Subject: [PATCH] fix for vednor check --- .../aggregate_all_not_forwarding_viable_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/feature/interface/aggregate/otg_tests/aggregate_all_not_viable_test/aggregate_all_not_forwarding_viable_test.go b/feature/interface/aggregate/otg_tests/aggregate_all_not_viable_test/aggregate_all_not_forwarding_viable_test.go index 1ee39838883..46229d70220 100644 --- a/feature/interface/aggregate/otg_tests/aggregate_all_not_viable_test/aggregate_all_not_forwarding_viable_test.go +++ b/feature/interface/aggregate/otg_tests/aggregate_all_not_viable_test/aggregate_all_not_forwarding_viable_test.go @@ -168,7 +168,6 @@ var ( ipRange = []uint32{250, 500} dutAggMac []string - vendor ondatra.Vendor ) func TestMain(m *testing.M) { @@ -461,7 +460,6 @@ 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())) @@ -469,7 +467,7 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) []string { 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} } }