From 7ff8639931dc30890363179d04819c253cc5309b Mon Sep 17 00:00:00 2001 From: Pramod Maurya Date: Mon, 19 Aug 2024 17:04:47 +0000 Subject: [PATCH] fixes issues introduced in PR#2795 --- .../base_hierarchical_nhg_update_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/feature/gribi/otg_tests/base_hierarchical_nhg_update/base_hierarchical_nhg_update_test.go b/feature/gribi/otg_tests/base_hierarchical_nhg_update/base_hierarchical_nhg_update_test.go index fdc6908f538..2f46b11682c 100644 --- a/feature/gribi/otg_tests/base_hierarchical_nhg_update/base_hierarchical_nhg_update_test.go +++ b/feature/gribi/otg_tests/base_hierarchical_nhg_update/base_hierarchical_nhg_update_test.go @@ -287,10 +287,12 @@ func testBaseHierarchialNHGwithVrfPolW(ctx context.Context, t *testing.T, args * // Remove interface from VRF-1. gnmi.Delete(t, args.dut, gnmi.OC().NetworkInstance(vrfName).Config()) + p1 := args.dut.Port(t, "port1") + gnmi.Update(t, args.dut, gnmi.OC().Interface(p1.Name()).Config(), dutPort1.NewOCInterface(p1.Name(), args.dut)) ctx = context.WithValue(ctx, transitKey{}, true) testBaseHierarchialNHG(ctx, t, args) - //Delete Policy-forwarding PolicyW from the ingress interface + // Delete Policy-forwarding PolicyW from the ingress interface vrfpolicy.DeletePolicyForwarding(t, args.dut, "port1") }