-
Notifications
You must be signed in to change notification settings - Fork 15
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
OPENCONFIG-gNMI - gnmi_get of IPV4/IPV6 address on interface fails #115
Comments
Observing the issue even with #86 fixed. Please find the logs below bserving the issue in build "sonic_2.0_daily_190912_1808_328" too.re-opening this issue. ======================================================= root@sonic:/#gnmi_get -xpath /openconfig-interfaces:interfaces/interface[name=Ethernet28] -target_addr 127.0.0.1:8080 -insecure path: < elem: < encoding: JSON_IETF == getResponse: update: < elem: < val: < root@sonic:/# path: < elem: < elem: < elem: < elem: < elem: < elem: < encoding: JSON_IETF F0913 09:45:20.588199 246 gnmi_get.go:137] Get failed: rpc error: code = NotFound desc = GET failed for this message root@sonic:/home/admin# show platform summary ============================================================= |
There are two operations done in this defect. One is configuring IPV4/IPv6 address and then getting the IP address through gNMI. Configuration is related to #86, not exact duplicate of it. CVL fix for configuration is available in master branch (PR #118). Please test configuration and update the result. If gnmi_get is not working as expected, we need to fix them separately (which is not related to CVL). |
There is issue seen with gnmi_set for interfaces: gnmi_set -update /openconfig-interfaces:interfaces/interface[name=Ethernet0]/subinterfaces/subinterface[index=0]/openconfig-if-ip:ipv4/addresses/address[ip=1.2.3.4]/config -target_addr 127.0.0.1:8080 -insecure val: < F0103 21:41:06.583427 313 gnmi_set.go:164] Set failed: rpc error: code = Unknown desc = UPDATE failed for this message |
Logs for the same |
GNMI get for address container or sub interfaces is not supported for this release. Please do a get on Interface list with Interface name as key. |
As @asha-behera mentioned, set will work fine. But GET is not supported for subInterfaces level or address level. Still, need to use interfaces/interface[name] for the info. |
@sachin-brm @PrabhuSreenivasan @dutta-partha @asha-behera -- I will leave it up to you to evaluate Justin's response and close the issue if you agree. From the repro logs, it looks like you're doing a GET/SET on the sub-interface, whereas the operation should be performed on the interface itself. |
@justinejose91 , SET for the above case is not working for me, is it working for you? |
@asha-behera , I have tried it with the latest build. Its working fine for me. Please have a look at the screenshots attached, which mentions the build as well. |
Problem Description/Summary :
OPENCONFIG-gNMI - gnmi_get of IPV4/IPV6 address on interface fails
Expected Behavior :
gnmi_get operation for IPV4/IPV6 address on interface should be successful
Topology :
DUT
Steps to Repro :
docker exec -it telemetry bash
5.Same issue is observed with IPV6 address
Reproducibility ( Ex:- 3 out of 3 attempts ) Please also update "Reproducible" field :
3
The text was updated successfully, but these errors were encountered: