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 73498534b12..9844afe5d9e 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 @@ -101,7 +101,10 @@ func configureNode(t *testing.T, name string, lldpEnabled bool) (*ondatra.DUTDev gnmi.Replace(t, node, gnmi.OC().Lldp().Enabled().Config(), lldpEnabled) if lldpEnabled { - gnmi.Replace(t, node, gnmi.OC().Lldp().Interface(p.Name()).Config(), llint) + 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) { 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 e34e217dcd9..7cffa072e52 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" ) @@ -145,7 +146,10 @@ func configureDUT(t *testing.T, name string, lldpEnabled bool) (*ondatra.DUTDevi gnmi.Replace(t, node, gnmi.OC().Lldp().Enabled().Config(), lldpEnabled) if lldpEnabled { - gnmi.Replace(t, node, gnmi.OC().Lldp().Interface(p.Name()).Config(), llint) + 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) {