07-22-2025 11:15 AM
Hello,
When using yangsuites to configure gnmi request with two leaflist nodes, it seems that yangsuites will create two update request for each leaflist rather than passing the two values in one update request.
When I tried to run to modify the request manually to have both values together in "jsonIetfVal" but that gives an error.
Tried: "jsonIetfVal": "[\"STANDARD,EXTENDED\"]" & "jsonIetfVal": "[\"STANDARD,\"EXTENDED"\"]"
Is this a bug, as the second update request will overwrite the first and oc-db will just have the second value?
what would be the correct format to use here?
Please find set and get request attached.
Regards,
Nusaiba
07-22-2025 01:40 PM
By no means an expert here, looking at the files you are right, the first update: "jsonIetfVal": "[\"STANDARD\"]" second update: "jsonIetfVal": "[\"EXTENDED\"]" because the second update thus will overwrite the first, leaving you with only extended in the configuration.
Im not sure how you can fix this and it looks like a bug in the way yangsuite dealing of leaf list nodes or maybe limitation in how it processes multiple values.
If you don’t get a rely here, I would put an issue on the GitHub repository or reach out to one of the contributors at Cisco.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide