hellt / netdevops.me

"Applying devops to networks" blog
https://netdevops.me
24 stars 3 forks source link

2020/arista-veos-gnmi-tutorial/ #2

Closed utterances-bot closed 2 years ago

utterances-bot commented 3 years ago

Arista vEOS gNMI Tutorial |

https://netdevops.me/2020/arista-veos-gnmi-tutorial/

BrivinTech commented 3 years ago

Hi,

I am currently trying to support the gNMI in the Opendaylight. So, For this, I am planning to use the Arista EOS for the demo.. Can we use the java application to perform the gNMI operations on Arista EOS? Also, Please guide me on How to brought in the Arista EOS in my local lab setup?

Thanks, Vinoth B

hellt commented 3 years ago

@BrivinTech You can check containerlab.srlinux.dev to easily get ceos containers running in a lab

As to the Java gnmi apps I have no idea

BrivinTech commented 3 years ago

I have used the VMWare and deployed the Arista EOSv4.26 image. But after successful creation, There is no interface Ethernet ports are not available and only management ports are available inside the router. Also, we are not able to create the new interfaces in the VM as well.

rkkilari commented 3 years ago

Hi @BrivinTech, thank u for the tutorial. I am using cEOS-lab-4.25.4M in docker, WSL2. capabilities request successfully returned data. But below get requests are returning different response than what u have mentioned. I get error message with set request.

~>> gnmic -a 127.0.0.1:6030 -u admin -p arista --insecure get \ --path "/interfaces/interface[name=Ethernet1]/config/description" [ { "time": "1970-01-01T05:30:00+05:30" } ] ~>> gnmic -a 127.0.0.1:6030 -u admin -p arista --insecure get \ ath "/interface> --path "/interfaces/interface[name=]/subinterfaces/subinterface[index=]/ipv4/addresses/address/config/ip" [ { "time": "1970-01-01T05:30:00+05:30" } ] ~>> gnmic -a 127.0.0.1:6030 -u admin -p arista --insecure set \ --u> --update-path "/interfaces/interface[name=Ethernet1]/config/description" \

    --update-value "gnmic-example"

target "127.0.0.1:6030" set request failed: failed sending SetRequest to '127.0.0.1:6030': rpc error: code = NotFound desc = failed to apply: Request could not be completed because leafref at path "/interfaces/interface[name='Ethernet1']/name" had error "leaf value (Ethernet1) not present in reference path (../config/name)" Error: one or more requests failed ~>>