You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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}]}}
The text was updated successfully, but these errors were encountered: