Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client is adding unwanted double quotes in set request value when adding value on json_val #561

Open
kapilrastogi1231 opened this issue Dec 3, 2024 · 1 comment

Comments

@kapilrastogi1231
Copy link

When we are using Set request and in set value is setting in json_val, gnmic is adding double quotes in the update/replace value:

gnmic -a <ip:port> -u <username> -p <password> --skip-verify set --update-path /a/b/m --update-value test --print-request --format prototext Set Request: update: { path: { elem: { name: "a" } elem: { name: "b" } elem: { name: "m" } } val: { **_json_val: "\"test\""_** } }
This is creating the issue as requested update data is wrong.

@karimra
Copy link
Collaborator

karimra commented Dec 3, 2024

Those quotes are required. "test" is a valid json value, test is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants