Closed stiltzkin10 closed 7 years ago
I added a couple of comments about fixing the optional_args=None
change. Also unit test failures need fixed...but I think that will fixed by the optional_args=None change. Also leave the password argument in __init__
as being required. I think that change probably needs to wait until we can make it uniform across all of the drivers.
Did you test validate that this change works using SSH keys.
Got it. Reverted back to optional_args=None. Thanks!
I have tested this and it works fine on the JUNOS devices I have access to.
To my knowledge the API does not support fall back to username/password.
Okay, I added one more comment about self.port missing at one point. I also think we should make the optional argument be key_file
for consistency with the other drivers.
Agree. Updated.
@stiltzkin10 This looks good to me.
Let me get @dbarrosop or @mirceaulinic to sanity check since they use Juniper driver more than I do.
Yep, no worries. Thanks!
I don't use juniper devices anymore but I could confirm with TestJunOSDriver.py::TestConfigJunOSDriver
that this PR works fine. If you have the key in the ssh-agent
works as usual and if you don't you can pass the key_file
arg. and work as promised.
Thanks! :)
Oh, just one thing. Would you mind updating the optional_args
documentation in the napalm
docs, please? Once that PR is sent link it here and I will merge both. Thanks again!
Sure, I created napalm-automation/napalm#368. I actually created sub bullets since vyos/junos are slightly different.
Awesome, thanks!
Also change optional_args to default to an empty dict.
This is for issue/FR: #143