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
{{ message }}
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.
While trying add use_textfsm=True to send_commad function it raises the below error.
Traceback (most recent call last):
File "async-ssh.py", line 51, in
main()
File "async-ssh.py", line 46, in main
print(task.result())
File "async-ssh.py", line 30, in collect_output
command_result = await connection.send_command(command,use_textfsm=True)
TypeError: send_command() got an unexpected keyword argument 'use_textfsm'
Task exception was never retrieved
future: <Task finished coro=<collect_output() done, defined at async-ssh.py:24> exception=TypeError("send_command() got an unexpected keyword argument 'use_textfsm'",)>
Traceback (most recent call last):
File "async-ssh.py", line 30, in collect_output
command_result = await connection.send_command(command,use_textfsm=True)
TypeError: send_command() got an unexpected keyword argument 'use_textfsm'
The text was updated successfully, but these errors were encountered:
Hello,
In reference to the below link, netmiko now support passing this parameter "use_textfsm=True" along with send_command() in order to return structured data parsed with ready textfsm templates created in ntc-templates. So it is all about getting structured data.
While trying add use_textfsm=True to send_commad function it raises the below error.
Traceback (most recent call last):
File "async-ssh.py", line 51, in
main()
File "async-ssh.py", line 46, in main
print(task.result())
File "async-ssh.py", line 30, in collect_output
command_result = await connection.send_command(command,use_textfsm=True)
TypeError: send_command() got an unexpected keyword argument 'use_textfsm'
Task exception was never retrieved
future: <Task finished coro=<collect_output() done, defined at async-ssh.py:24> exception=TypeError("send_command() got an unexpected keyword argument 'use_textfsm'",)>
Traceback (most recent call last):
File "async-ssh.py", line 30, in collect_output
command_result = await connection.send_command(command,use_textfsm=True)
TypeError: send_command() got an unexpected keyword argument 'use_textfsm'
The text was updated successfully, but these errors were encountered: