I am using EOS version 4.25.2Fand with this version, the sshkey is not a keyword that is seen in the running config or with the eos commands. While working with the EOS version 4.25 +. the regex should be using ssh-key instead of sshkey.
Looks like a change between Arista EOS versions that is not captured in code.
Unable to obtain SSHKeys using the provided module Users.
I am trying to make use of the Arista goeapi (https://github.com/aristanetworks/goeapi)
While working with the module.Users, i see that the regular expressions used to parse the running config to build UserConfig uses
sshkey
Refer : https://github.com/aristanetworks/goeapi/blob/master/module/users.go#L57 https://github.com/aristanetworks/goeapi/blob/master/module/users.go#L220 https://github.com/aristanetworks/goeapi/blob/master/module/users.go#L366-L374I am using EOS version
4.25.2F
and with this version, the sshkey is not a keyword that is seen in the running config or with the eos commands. While working with the EOS version 4.25 +. the regex should be usingssh-key
instead ofsshkey
. Looks like a change between Arista EOS versions that is not captured in code.Sample from running config beyond
EOS 4.25.x