Skip to content

Commit

Permalink
Fix static configuration and vrf selection policy configuration (ope…
Browse files Browse the repository at this point in the history
…nconfig#2901)

failure in TE-17.1 VRF selection policy driven TE
  • Loading branch information
prakashbadri-arista authored Apr 17, 2024
1 parent acabfe1 commit 129ac0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ platform_exceptions: {
gnoi_subcomponent_path: true
deprecated_vlan_id: true
interface_enabled: true
static_protocol_name: "STATIC"
default_network_instance: "default"
gribi_mac_override_static_arp_static_route: true
missing_isis_interface_afi_safi_enable: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,6 @@ func configureVrfSelectionPolicyW(t *testing.T, dut *ondatra.DUTDevice) {
gnmi.Replace(t, dut, dutPolFwdPath.Config(), niP)
}

func deleteVrfSelectionPolicy(t *testing.T, dut *ondatra.DUTDevice) {
t.Helper()
gnmi.Delete(t, dut, gnmi.OC().NetworkInstance(deviations.DefaultNetworkInstance(dut)).PolicyForwarding().Config())
}

func configureVrfSelectionPolicyC(t *testing.T, dut *ondatra.DUTDevice) {
t.Helper()
d := &oc.Root{}
Expand Down Expand Up @@ -2075,15 +2070,13 @@ func TestGribiDecap(t *testing.T) {
})

t.Log("Delete vrf selection policy W and Apply vrf selectioin policy C.")
deleteVrfSelectionPolicy(t, dut)
configureVrfSelectionPolicyC(t, dut)

t.Run("Test-4: Tunneled traffic with no decap", func(t *testing.T) {
testTunnelTrafficNoDecap(ctx, t, dut, args)
})

t.Log("Delete vrf selection policy C and Apply vrf selectioin policy W.")
deleteVrfSelectionPolicy(t, dut)
configureVrfSelectionPolicyW(t, dut)

t.Run("Test-5: Match on default term and send to default VRF", func(t *testing.T) {
Expand Down

0 comments on commit 129ac0a

Please sign in to comment.