napalm-automation / napalm-junos

Apache License 2.0
22 stars 42 forks source link

FR: Add optional_args for SSH key file. #143

Closed stiltzkin10 closed 7 years ago

stiltzkin10 commented 7 years ago

Since the JUNOS API supports SSH keys it would be nice if naplm_junos could support it too.

Instead of specifying username and password one would just specify the username and SSH key file as an optional argument.

For example:

driver(host, username='my_ssh_key_enabled_user', optional_args={'ssh_keyfile': my_key})
stiltzkin10 commented 7 years ago

Fixed by #145