From e2afd191a59cf6d6bf1a5efd7ca3326e64914493 Mon Sep 17 00:00:00 2001 From: snaragund Date: Fri, 20 Nov 2026 16:56:46 +0530 Subject: [PATCH] TE-2.3: wait for IPv6 ARP before traffic; enable interface on Nokia - Push and start OTG protocols after DUT configuration, then wait for IPv6 neighbor resolution before sending traffic in TestIPv6Entry and createTrafficFlows. - Set interface_enabled deviation for Nokia. "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." --- .../otg_tests/ipv6_entry_test/ipv6_entry_test.go | 15 ++++++++++----- .../otg_tests/ipv6_entry_test/metadata.textproto | 1 + 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/feature/gribi/otg_tests/ipv6_entry_test/ipv6_entry_test.go b/feature/gribi/otg_tests/ipv6_entry_test/ipv6_entry_test.go index 1a81a2b7527..be9df343fe9 100644 --- a/feature/gribi/otg_tests/ipv6_entry_test/ipv6_entry_test.go +++ b/feature/gribi/otg_tests/ipv6_entry_test/ipv6_entry_test.go @@ -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 { @@ -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}) }) @@ -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) }) @@ -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 } @@ -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() @@ -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 } diff --git a/feature/gribi/otg_tests/ipv6_entry_test/metadata.textproto b/feature/gribi/otg_tests/ipv6_entry_test/metadata.textproto index ec5691c0b81..af480bc363a 100644 --- a/feature/gribi/otg_tests/ipv6_entry_test/metadata.textproto +++ b/feature/gribi/otg_tests/ipv6_entry_test/metadata.textproto @@ -28,6 +28,7 @@ platform_exceptions: { deviations: { explicit_interface_in_default_vrf: true static_protocol_name: "static" + interface_enabled: true } } platform_exceptions: {