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

Question(s): Sending Set requests for SONiC data #38

Open
chaichairiko opened this issue Nov 23, 2020 · 0 comments
Open

Question(s): Sending Set requests for SONiC data #38

chaichairiko opened this issue Nov 23, 2020 · 0 comments

Comments

@chaichairiko
Copy link

Hi, I've been working on this for a week now, trying to understand the code and the relationship between the mgmt-common, mgmt-telemetry, and gnxi. I have used the different examples with openconfig that are shown in the "tests" dir with no success. I think there might be an issue there seeing that there are two semi-colons there (which seems to be contradicting to how gnxi parses the request: https://github.com/jipanyang/gnxi/blob/f0a90cca6fd0041625bcce561b71f849c9b65a8d/gnmi_set/gnmi_set.go#L62).

My question is, what is the format to send Set commands for SONiC data (Ports, interfaces, etc.) and is it possible to add the different yang models in the yang-models dir under sonic-buildimage/src also here?

This is the command I am sending (I have tried may others as well):
gnmi_set -replace /sonic-port/sonic-port:@./vlan_config.json -target_addr :8080 -target_name -alsologtostderr -insecure true -pretty

vlan_config.json -> {"PORT": {"PORT_LIST": [{"ifname": "Ethernet111" ,"index": 111}]}}

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

1 participant