Describe the bug
The test specification in feature/interface/singleton/otg_tests/singleton_test/README.md omits three OpenConfig telemetry state paths that are actively configured and verified in singleton_test.go:
/interfaces/interface/state/mtu
/interfaces/interface/subinterfaces/subinterface/ipv4/neighbors/neighbor/state/origin
/interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/origin
Additionally, the legacy README.md lacked a valid ## Canonical OC block, causing validate_readme_canonicalocspec to fail.
To Reproduce
Steps to reproduce the behavior:
- Inspect
feature/interface/singleton/otg_tests/singleton_test/singleton_test.go:
- Line 120 (
configInterfaceDUT): i.Mtu = ygot.Uint16(tc.mtu + 14)
- Line 289 (
verifyInterfaceDUT): gnmi.Get(t, tc.dut, dis4np.Origin().State())
- Line 295 (
verifyInterfaceDUT): gnmi.Get(t, tc.dut, dis6np.Origin().State())
- Run
go run ./tools/validate_readme_canonicalocspec -alsologtostderr feature/interface/singleton/otg_tests/singleton_test/README.md.
- Observe missing
Canonical OC error.
Expected behavior
README.md should register all verified telemetry state paths, include a valid RFC 7951 Canonical OC block, and pass validate_readme_canonicalocspec and validate_readme_ocpaths.
Logs
N/A (Specification gap & validator audit)
Network device platform:
- Device: Universal / OTG Testbed
- OS: OpenConfig / Ondatra
- Version of the test: main branch (
singleton_test)
Describe the bug
The test specification in
feature/interface/singleton/otg_tests/singleton_test/README.mdomits three OpenConfig telemetry state paths that are actively configured and verified insingleton_test.go:/interfaces/interface/state/mtu/interfaces/interface/subinterfaces/subinterface/ipv4/neighbors/neighbor/state/origin/interfaces/interface/subinterfaces/subinterface/ipv6/neighbors/neighbor/state/originAdditionally, the legacy
README.mdlacked a valid## Canonical OCblock, causingvalidate_readme_canonicalocspecto fail.To Reproduce
Steps to reproduce the behavior:
feature/interface/singleton/otg_tests/singleton_test/singleton_test.go:configInterfaceDUT):i.Mtu = ygot.Uint16(tc.mtu + 14)verifyInterfaceDUT):gnmi.Get(t, tc.dut, dis4np.Origin().State())verifyInterfaceDUT):gnmi.Get(t, tc.dut, dis6np.Origin().State())go run ./tools/validate_readme_canonicalocspec -alsologtostderr feature/interface/singleton/otg_tests/singleton_test/README.md.Canonical OCerror.Expected behavior
README.mdshould register all verified telemetry state paths, include a valid RFC 7951 Canonical OC block, and passvalidate_readme_canonicalocspecandvalidate_readme_ocpaths.Logs
N/A (Specification gap & validator audit)
Network device platform:
singleton_test)