Skip to content

Commit

Permalink
OC-1.2 : default_tests.go (#3258)
Browse files Browse the repository at this point in the history
* added ipv6 neighbor check

* Update defaults_test.go

* updating to check kne platform

* Updating code for kne platform

* Update defaults_test.go

* Update defaults_test.go

* Update defaults_test.go

---------

Co-authored-by: Swetha-haridasula <[email protected]>
  • Loading branch information
cprabha and Swetha-haridasula authored Oct 23, 2024
1 parent 3621ce6 commit b401264
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions feature/networkinstance/otg_tests/defaults_test/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package ni_address_families_test

import (
"fmt"
"slices"
"testing"
"time"

Expand Down Expand Up @@ -103,6 +104,7 @@ var (
IPv6Len: 64,
MAC: "02:00:02:01:01:01",
}
kneDeviceModelList = []string{"ncptx", "ceos", "srlinux", "xrd"}
)

// TestDefaultAddressFamilies verifies that both IPv4 and IPv6 are enabled by default without a need for additional
Expand Down Expand Up @@ -181,6 +183,14 @@ func TestDefaultAddressFamilies(t *testing.T) {
otgutils.WaitForARP(t, ate.OTG(), top, "IPv4")
otgutils.WaitForARP(t, ate.OTG(), top, "IPv6")

// https://github.com/openconfig/featureprofiles/issues/3410
// Below code will be removed once ixia issue is fixed.
if slices.Contains(kneDeviceModelList, dut.Model()) {
ate.OTG().StartTraffic(t)
time.Sleep(15 * time.Second)
ate.OTG().StopTraffic(t)
}

ate.OTG().StartTraffic(t)
time.Sleep(15 * time.Second)
ate.OTG().StopTraffic(t)
Expand Down

0 comments on commit b401264

Please sign in to comment.