From 3964199584e174e5a3dacdba219ef1446c6f6d90 Mon Sep 17 00:00:00 2001 From: Avnish Singh Date: Tue, 8 Sep 2026 12:01:43 +0000 Subject: [PATCH 1/2] Add prefix-length state path to gnmi_set_test README.md OpenConfig paths covered: - /interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/state/prefix-length --- feature/gnmi/tests/gnmi_set_test/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/feature/gnmi/tests/gnmi_set_test/README.md b/feature/gnmi/tests/gnmi_set_test/README.md index c5af58acd84..c03803ff8c3 100644 --- a/feature/gnmi/tests/gnmi_set_test/README.md +++ b/feature/gnmi/tests/gnmi_set_test/README.md @@ -203,6 +203,7 @@ This test checks that the static protocol name is usable. paths: /interfaces/interface/name: /interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/ip: + /interfaces/interface/subinterfaces/subinterface/ipv4/addresses/address/state/prefix-length: /network-instances/network-instance/name: rpcs: gnmi: From b779b80978dab1f8652e333306f3ae17576bd4ca Mon Sep 17 00:00:00 2001 From: Avnish Singh Date: Tue, 8 Sep 2026 12:16:23 +0000 Subject: [PATCH 2/2] Add Canonical OC section to gnmi_set_test README.md --- feature/gnmi/tests/gnmi_set_test/README.md | 71 ++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/feature/gnmi/tests/gnmi_set_test/README.md b/feature/gnmi/tests/gnmi_set_test/README.md index c03803ff8c3..81a6135b5cf 100644 --- a/feature/gnmi/tests/gnmi_set_test/README.md +++ b/feature/gnmi/tests/gnmi_set_test/README.md @@ -197,6 +197,77 @@ This test checks that the static protocol name is usable. * gNMI.Set +## Canonical OC + +```json +{ + "interfaces": { + "interface": [ + { + "config": { + "description": "dut:port1", + "name": "port1" + }, + "name": "port1", + "subinterfaces": { + "subinterface": [ + { + "config": { + "index": 0 + }, + "index": 0, + "ipv4": { + "addresses": { + "address": [ + { + "config": { + "ip": "192.0.2.1", + "prefix-length": 30 + }, + "ip": "192.0.2.1" + } + ] + } + } + } + ] + } + }, + { + "config": { + "description": "dut:port2", + "name": "port2" + }, + "name": "port2", + "subinterfaces": { + "subinterface": [ + { + "config": { + "index": 0 + }, + "index": 0, + "ipv4": { + "addresses": { + "address": [ + { + "config": { + "ip": "192.0.2.5", + "prefix-length": 30 + }, + "ip": "192.0.2.5" + } + ] + } + } + } + ] + } + } + ] + } +} +``` + ## OpenConfig Path and RPC Coverage ```yaml