Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions feature/gribi/otg_tests/ipv6_entry_test/ipv6_entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,17 @@ func staticARPWithMagicUniversalIP(t *testing.T, dut *ondatra.DUTDevice) {
// TestIPv6Entry tests IPv6Entry forwarding with prefix length > 64.
func TestIPv6Entry(t *testing.T) {
ctx := context.Background()
// Configure ATE
ate := ondatra.ATE(t, "ate")
configureATE(t, ate)
top := configureATE(t, ate)

dut := ondatra.DUT(t, "dut")
configureDUT(t, dut)

otg := ate.OTG()
otg.PushConfig(t, top)
otg.StartProtocols(t)
otgutils.WaitForARP(t, otg, top, "IPv6")

gribic := dut.RawAPIs().GRIBI(t)

cases := []struct {
Expand Down Expand Up @@ -567,6 +571,7 @@ func TestIPv6Entry(t *testing.T) {
f2Bad := createFlowWithPrefix(t, "LPM_Coarser_Drop_Port3", ate, ateTop, "2001:db8:200:0:8000::1", 256, &atePort3)
otg.PushConfig(t, ateTop)
otg.StartProtocols(t)
otgutils.WaitForARP(t, otg, ateTop, "IPv6")

validateTrafficFlows(t, ate, []string{f1Good, f2Good}, []string{f1Bad, f2Bad})
})
Expand Down Expand Up @@ -630,6 +635,7 @@ func TestIPv6Entry(t *testing.T) {
flowName := createFlowWithPrefix(t, "Flow_"+sp.name, ate, ateTop, sp.flowIP, 1, &atePort2)
otg.PushConfig(t, ateTop)
otg.StartProtocols(t)
otgutils.WaitForARP(t, otg, ateTop, "IPv6")

validateTrafficFlows(t, ate, []string{flowName}, nil)
})
Expand Down Expand Up @@ -677,9 +683,6 @@ func configureATE(t *testing.T, ate *ondatra.ATEDevice) gosnappi.Config {
atePort2.AddToOTG(top, p2, &dutPort2)
atePort3.AddToOTG(top, p3, &dutPort3)

ate.OTG().PushConfig(t, top)
ate.OTG().StartProtocols(t)

return top
}

Expand Down Expand Up @@ -716,6 +719,7 @@ func createTrafficFlows(t *testing.T, ate *ondatra.ATEDevice, good, bad []string
if len(good) == 0 && len(bad) == 0 {
otg.PushConfig(t, ateTop)
otg.StartProtocols(t)
otgutils.WaitForARP(t, otg, ateTop, "IPv6")
return newGoodFlows, newBadFlows
}
ateTop.Flows().Clear().Items()
Expand Down Expand Up @@ -749,6 +753,7 @@ func createTrafficFlows(t *testing.T, ate *ondatra.ATEDevice, good, bad []string
}
otg.PushConfig(t, ateTop)
otg.StartProtocols(t)
otgutils.WaitForARP(t, otg, ateTop, "IPv6")
return newGoodFlows, newBadFlows
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ platform_exceptions: {
deviations: {
explicit_interface_in_default_vrf: true
static_protocol_name: "static"
interface_enabled: true
}
}
platform_exceptions: {
Expand Down
Loading