Update gnmi_set.go to support leaf list node update operation and changes for json replace usning py_gnmicli.py(currently it is broken) #47
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I know commit is not as per standard, but still we can check for review.
You can update leaf list node using setting below flag,
Set command line argument flag "-leaf_list_node true"(default false) to set leaf list node values.
For Ex.
go run gnmi_set.go -insecure -username admin -password admin -target_name testap -target_addr 10.86.64.138:8080 -update /access-points/access-point[hostname=testap]/radios/radio[id=1]/config/allowed-channels:1,6 -leaf_list_node true
go run gnmi_set.go -insecure -username admin -password admin -target_name testap -target_addr 10.86.64.138:8080 -update /access-points/access-point[hostname=testap]/ssids/ssid[name=11-google]/config/supported-data-rates:RATE_48MB,RATE_36MB,RATE_54MB -leaf_list_node true