cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
132
Views
1
Helpful
1
Replies

Issue with configuring leaflist node on yangsuites

nradi
Cisco Employee
Cisco Employee

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

1 Reply 1

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.

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io