From c9d210b68c45e37feb9a064ee5ef12a7ee20ce13 Mon Sep 17 00:00:00 2001 From: Karim Jahed Date: Sun, 14 Apr 2024 19:00:06 -0400 Subject: [PATCH 1/2] fix leafref --- .../core_lldp_tlv_population_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/feature/lldp/ate_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go b/feature/lldp/ate_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go index 61532d41ea1..5ee4c2d9bf5 100644 --- a/feature/lldp/ate_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go +++ b/feature/lldp/ate_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go @@ -99,7 +99,10 @@ func configureNode(t *testing.T, name string, lldpEnabled bool) (*ondatra.DUTDev gnmi.Replace(t, node, lldp.Enabled().Config(), lldpEnabled) if lldpEnabled { - gnmi.Replace(t, node, lldp.Interface(p.Name()).Enabled().Config(), lldpEnabled) + gnmi.Replace(t, node, lldp.Interface(p.Name()).Config(), &oc.Lldp_Interface{ + Name: ygot.String(p.Name()), + Enabled: ygot.Bool(lldpEnabled), + }) } if deviations.InterfaceEnabled(node) { From 14f0b025678edec5c6646eaaff9acb0b31e59943 Mon Sep 17 00:00:00 2001 From: Karim Jahed Date: Mon, 6 May 2024 20:29:45 -0400 Subject: [PATCH 2/2] update otg version --- .../core_lldp_tlv_population_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/feature/lldp/otg_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go b/feature/lldp/otg_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go index 532595c9e28..14c5a708f30 100644 --- a/feature/lldp/otg_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go +++ b/feature/lldp/otg_tests/core_lldp_tlv_population_test/core_lldp_tlv_population_test.go @@ -32,6 +32,7 @@ import ( otgtelemetry "github.com/openconfig/ondatra/gnmi/otg" "github.com/openconfig/ondatra/otg" "github.com/openconfig/ygnmi/ygnmi" + "github.com/openconfig/ygot/ygot" gpb "github.com/openconfig/gnmi/proto/gnmi" ) @@ -143,7 +144,10 @@ func configureDUT(t *testing.T, name string, lldpEnabled bool) (*ondatra.DUTDevi gnmi.Replace(t, node, lldp.Enabled().Config(), lldpEnabled) if lldpEnabled { - gnmi.Replace(t, node, lldp.Interface(p.Name()).Enabled().Config(), lldpEnabled) + gnmi.Replace(t, node, lldp.Interface(p.Name()).Config(), &oc.Lldp_Interface{ + Name: ygot.String(p.Name()), + Enabled: ygot.Bool(lldpEnabled), + }) } if deviations.InterfaceEnabled(node) { gnmi.Replace(t, node, gnmi.OC().Interface(p.Name()).Enabled().Config(), true)