diff --git a/feature/experimental/isis/otg_tests/isis_drain_test/isis_drain_test.go b/feature/experimental/isis/otg_tests/isis_drain_test/isis_drain_test.go index 62e5004aae9..d2ec54af22e 100644 --- a/feature/experimental/isis/otg_tests/isis_drain_test/isis_drain_test.go +++ b/feature/experimental/isis/otg_tests/isis_drain_test/isis_drain_test.go @@ -213,12 +213,6 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) { } // handle deviations for ports and lags - if deviations.ExplicitPortSpeed(dut) { - for _, port := range dut.Ports() { - fptest.SetPortSpeed(t, port) - } - } - fptest.ConfigureDefaultNetworkInstance(t, dut) if deviations.ExplicitInterfaceInDefaultVRF(dut) { @@ -227,6 +221,12 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) { fptest.AssignToNetworkInstance(t, dut, agg3ID, deviations.DefaultNetworkInstance(dut), 0) } + if deviations.ExplicitPortSpeed(dut) { + for _, port := range dut.Ports() { + fptest.SetPortSpeed(t, port) + } + } + // configure ISIS configureISISDUT(t, dut, []string{agg2ID, agg3ID}) } @@ -476,8 +476,9 @@ func TestDrain(t *testing.T) { dut := ondatra.DUT(t, "dut") ate := ondatra.ATE(t, "ate") otg := ate.OTG() - ateTopo := configureATE(t, otg) + configureDUT(t, dut) + ateTopo := configureATE(t, otg) ecmpFlows := createFlow(t, ateTopo, "ecmp-flow", atePort2.Name+".IPv4", atePort3.Name+".IPv4") lag2Flow := createFlow(t, ateTopo, "trunk2-flow", atePort2.Name+".IPv4")