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
The problem here is that this code section does NOT pass in any attributes related to public key authentication. So it will fail here if you are relying on accessing a device that is only configured for ssh key auth.
Next steps
I got some code-changes locally where I fixed the issue and was able to connect successfully to a test arista device. It's been a few years from working in Django though, so I'm trying to unpack how to add a unit-test here. Hopefully should have a PR up tomorrow.
The text was updated successfully, but these errors were encountered:
Assuming this actually only failed with autodetect selected? Should have worked otherwise.
Hey @jeffkala, i got a PR out #295 that forces the autodetect logic to utilize the same ssh settings that are passed via the configuration. I'm a little unclear the delineation between nornir's autodetect list and the one in the docs under that. I'll hit you up out of band to try and get clarity there. Thanks
Environment
3.11.9
2.3.1
4.1.1a0
6.1.0
Expected Behavior
Following the directions from the docs one expects to be able to onboard devices via ssh key-pair.
Observed Behavior
Steps to Reproduce
GENERIC
typeSync Devices From Network
job using those credentials (and all the other required fields)Problematic code
This error is happening because within the:
command_getter
-> sync_devices_command_getter method, the code is calling nornir_plays.inventory_creator._set_inventory which is then calling nornir_plays.inventory_creator.guess_netmiko_device_type WHICH makes some directnetmiko
calls to try and yank out the device_type.The problem here is that this code section does NOT pass in any attributes related to public key authentication. So it will fail here if you are relying on accessing a device that is only configured for ssh key auth.
Next steps
I got some code-changes locally where I fixed the issue and was able to connect successfully to a test arista device. It's been a few years from working in Django though, so I'm trying to unpack how to add a unit-test here. Hopefully should have a PR up tomorrow.
The text was updated successfully, but these errors were encountered: