Hi,
This is the process I'm following:
- Take a recent build of SONiC
- Run it in GNS3
- Get a bash shell inside the 'docker-sonic-gnmi' container
- Run the example gNMI 'get' command
When I do that, I get the following:
root@sonic:/# gnmi_get -insecure -username admin -password YourPaSsWoRd -xpath /openconfig-interfaces:interfaces/interface[name=Ethernet0]/config -target_addr 127.0.0.1:8080 -xpath_target OC-YANG
== getRequest:
prefix: <
target: "OC-YANG"
>
path: <
origin: "openconfig-interfaces"
elem: <
name: "interfaces"
>
elem: <
name: "interface"
key: <
key: "name"
value: "Ethernet0"
>
>
elem: <
name: "config"
>
>
encoding: JSON_IETF
F0719 18:58:12.816922 67 gnmi_get.go:145] Get failed: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake"
root@sonic:/#
I have tested the master, 202405, 202311 and 202305 branches.
Am I missing something?
Thanks.
Hi,
This is the process I'm following:
When I do that, I get the following:
I have tested the master, 202405, 202311 and 202305 branches.
Am I missing something?
Thanks.