Skip to content

Commit

Permalink
adding fix to keep decap encap tunnels within specific limit (#3322)
Browse files Browse the repository at this point in the history
Co-authored-by: Ram <[email protected]>
  • Loading branch information
singh-prem and ram-mac authored Aug 5, 2024
1 parent d76f4d4 commit 50f1276
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions feature/gribi/otg_tests/gribi_scaling/gribi_scaling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ func incrementMAC(mac string, i int) (string, error) {

func TestScaling(t *testing.T) {
dut := ondatra.DUT(t, "dut")
overrideScaleParams(dut)
ate := ondatra.ATE(t, "ate")

ctx := context.Background()
Expand Down Expand Up @@ -378,3 +379,12 @@ func checkTraffic(t *testing.T, ate *ondatra.ATEDevice, top gosnappi.Config) {
t.Errorf("FAIL- Got %v%% packet loss for %s ; expected < 1%%", lossPct, "flow")
}
}

// overrideScaleParams allows to override the default scale parameters based on the DUT vendor.
func overrideScaleParams(dut *ondatra.DUTDevice) {
if deviations.OverrideDefaultNhScale(dut) {
if dut.Vendor() == ondatra.CISCO {
*fpargs.V4TunnelCount = 3328
}
}
}
1 change: 1 addition & 0 deletions feature/gribi/otg_tests/gribi_scaling/metadata.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ platform_exceptions: {
deviations: {
ipv4_missing_enabled: true
interface_ref_interface_id_format: true
override_default_nh_scale: true
}
}
platform_exceptions: {
Expand Down

0 comments on commit 50f1276

Please sign in to comment.