Skip to content

Commit

Permalink
RT-2.12: Updating config order (openconfig#2592)
Browse files Browse the repository at this point in the history
Updating config order to avoid very intermittent failure.

"This code is a Contribution to the OpenConfig Feature Profiles project ("Work") made under the Google Software Grant and Corporate Contributor License Agreement ("CLA") and governed by the Apache License 2.0. No other rights or licenses in or to any of Nokia's intellectual property are granted for any other purpose. This code is provided on an "as is" basis without any warranties of any kind."
  • Loading branch information
trathod1 authored and frasieroh committed Feb 6, 2024
1 parent 0664c3f commit 74258af
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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})
}
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit 74258af

Please sign in to comment.