Skip to content

Commit

Permalink
added SeqId off set method
Browse files Browse the repository at this point in the history
  • Loading branch information
suredhar committed Apr 10, 2024
1 parent 2d1e013 commit 3987444
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions feature/gribi/otg_tests/encap_frr/encap_frr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,6 @@ func configureVrfSelectionPolicy(t *testing.T, dut *ondatra.DUTDevice) {
networkInstance: niEncapTeVrfB}
pfRule16 := &policyFwRule{SeqID: 16, family: "ipv6", dscpSet: []uint8{dscpEncapB1, dscpEncapB2},
networkInstance: niEncapTeVrfB}
// pfRule17 := &policyFwRule{SeqID: 17, networkInstance: deviations.DefaultNetworkInstance(dut)}

pfRuleList := []*policyFwRule{pfRule1, pfRule2, pfRule3, pfRule4, pfRule5, pfRule6,
pfRule7, pfRule8, pfRule9, pfRule10, pfRule11, pfRule12, pfRule13, pfRule14,
Expand All @@ -519,7 +518,7 @@ func configureVrfSelectionPolicy(t *testing.T, dut *ondatra.DUTDevice) {
}

for _, pfRule := range pfRuleList {
pfR := niPf.GetOrCreateRule(pfRule.SeqID)
pfR := niPf.GetOrCreateRule(seqIDOffset(dut, pfRule.SeqID))

if pfRule.family == "ipv4" {
pfRProtoIP := pfR.GetOrCreateIpv4()
Expand Down

0 comments on commit 3987444

Please sign in to comment.