Open avaneesh90 opened 2 years ago
Describe the bug gNMI-1.13_Telemetry_Optics_Power_and_Bias_Current required "type configuration is missing" Need to add type configuration for this testcase https://github.com/openconfig/featureprofiles/blob/main/feature/platform/tests/optics_power_and_bias_current_test/optics_power_and_bias_current_test.go#L128
intUpdateTime := 2 * time.Minute t.Run(tc.desc, func(t *testing.T) { i.Enabled = ygot.Bool(tc.IntfStatus) i.Type = ethernetCsmacd dut.Config().Interface(dp.Name()).Replace(t, i) dut.Telemetry().Interface(dp.Name()).OperStatus().Await(t, intUpdateTime, tc.expectedStatus)
To Reproduce Steps to reproduce the behavior:
Run the script it will throw type missing error
Expected behavior Script should pass
Logs optics_power_and_bias_current_test.go:131: Replace(t, &{out-of-range E_Interface_AdminStatus enum value: 0 0xc005b6c788 [] 0xc005b621a0 out-of-range E_Interface_OperStatus enum value: 0 [] [] map[] out-of-range E_VlanTypes_TPID_TYPES enum value: 0 out-of-range E_IETFInterfaces_InterfaceType enum value: 0}) at path origin:"openconfig" elem:{name:"interfaces"} elem:{name:"interface" key:{key:"name" value:"et-0/0/5"}} target:"dut": SetRequest unsuccessful: rpc error: code = Unknown desc = mustd: Missing mandatory statement: 'type'; commit failed: (missing mandatory statements)
Additional context
Telemetry optics #769
Describe the bug gNMI-1.13_Telemetry_Optics_Power_and_Bias_Current required "type configuration is missing" Need to add type configuration for this testcase https://github.com/openconfig/featureprofiles/blob/main/feature/platform/tests/optics_power_and_bias_current_test/optics_power_and_bias_current_test.go#L128
To Reproduce Steps to reproduce the behavior:
Run the script it will throw type missing error
Expected behavior Script should pass
Logs optics_power_and_bias_current_test.go:131: Replace(t, &{out-of-range E_Interface_AdminStatus enum value: 0 0xc005b6c788 [] 0xc005b621a0 out-of-range E_Interface_OperStatus enum value: 0 [] [] map[] out-of-range E_VlanTypes_TPID_TYPES enum value: 0 out-of-range E_IETFInterfaces_InterfaceType enum value: 0}) at path origin:"openconfig" elem:{name:"interfaces"} elem:{name:"interface" key:{key:"name" value:"et-0/0/5"}} target:"dut": SetRequest unsuccessful: rpc error: code = Unknown desc = mustd: Missing mandatory statement: 'type';
commit failed: (missing mandatory statements)
Additional context