Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delay_factor throwing error #72

Closed
jedelman8 opened this issue Oct 30, 2015 · 3 comments
Closed

delay_factor throwing error #72

jedelman8 opened this issue Oct 30, 2015 · 3 comments

Comments

@jedelman8
Copy link
Member

hey @jtdub, did you test ntc_show_command after you added delay_factor? :)

I haven't used netmiko too much but just checked out the code and it looks like delay_factor is a config command and shouldn't be used in the ConnectHandler...

tests from netimiko:

 send_command_fast = net_connect.send_command(basic_command, delay_factor=.25)
failed: [spine2] => {"failed": true, "parsed": false}
Traceback (most recent call last):
  File "/home/cisco/.ansible/tmp/ansible-tmp-1446166372.68-170120052390508/ntc_show_command", line 1857, in <module>
    main()
  File "/home/cisco/.ansible/tmp/ansible-tmp-1446166372.68-170120052390508/ntc_show_command", line 223, in main
    password=password
  File "/usr/local/lib/python2.7/dist-packages/netmiko/ssh_dispatcher.py", line 54, in ConnectHandler
    return ConnectionClass(*args, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'delay_factor'


FATAL: all hosts have already failed -- aborting

@jtdub
Copy link
Contributor

jtdub commented Oct 30, 2015

You're right. It goes in send_command(). Standby.

@jtdub
Copy link
Contributor

jtdub commented Oct 30, 2015

#73

@jedelman8
Copy link
Member Author

Fixed by #73

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants