Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ func configureDUT(t *testing.T, dut *ondatra.DUTDevice) {
}

func configureInputPolicy(t *testing.T, dut *ondatra.DUTDevice, tc testCase) {
if deviations.InterfacePolicyForwardingOCUnsupported(dut) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that there is no issue tracker with Arista for this behaviour. Please raise one and tag it in deviations.go file.

return
}
Comment thread
ijernoiu marked this conversation as resolved.
defaultNIName := deviations.DefaultNetworkInstance(dut)
interfaceName := dut.Port(t, port1).Name()
var policyName string
Expand All @@ -333,6 +336,7 @@ func configureInputPolicy(t *testing.T, dut *ondatra.DUTDevice, tc testCase) {
AppliedPolicyName: policyName,
}
cfgplugins.InterfacePolicyForwardingConfig(t, dut, nil, "", pf, ocPFParams)
gnmi.Replace(t, dut, gnmi.OC().NetworkInstance(defaultNIName).PolicyForwarding().Interface(interfaceName).Config(), pf.GetInterface(interfaceName))
}

func configureDecapPolicyForwarding(t *testing.T, dut *ondatra.DUTDevice, interfaceName string) {
Expand Down
1 change: 0 additions & 1 deletion internal/cfgplugins/policyforwarding.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,6 @@ func InterfacePolicyForwardingConfig(t *testing.T, dut *ondatra.DUTDevice, a *at
}
} else {
ApplyPolicyToInterfaceOC(t, pf, params.InterfaceID, params.AppliedPolicyName)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file as there are no changes.


}
}

Expand Down