-
Notifications
You must be signed in to change notification settings - Fork 105
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
Added crlf/lf option to telnet #440
Conversation
I think this would fix #446 as well. I hit the same issue and fixed it more or less the same way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a changelog fragment to your PR? Thanks!
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
9746099
to
07ef0c5
Compare
Apologies, better late than never? decided to rebase and re-implement the changes because the latest version of the telnet module had been changed a little bit. Let me know if I've missed anything. |
for more information, see https://pre-commit.ci
v8.4.0 Major Changes ------------- fortinet.fortios - Improve the document for adding notes and examples in Q&A for modules using Integer number as the mkey. Minor Changes ------------- amazon.aws - cloudformation - Add support for ``disable_rollback`` to update stack operation (ansible-collections/amazon.aws#1681). - ec2_key - add support for new parameter ``file_name`` to save private key in when new key is created by AWS. When this option is provided the generated private key will be removed from the module return (ansible-collections/amazon.aws#1704). ansible.netcommon - Add a new cliconf plugin ``default`` that can be used when no cliconf plugin is found for a given network_os. This plugin only supports ``get()``. (ansible-collections/ansible.netcommon#569) - httpapi - Add additional option ``ca_path``, ``client_cert``, ``client_key``, and ``http_agent`` that are available in open_url but not to httpapi. (ansible-collections/ansible.netcommon#528) - telnet - add crlf option to send CRLF instead of just LF (ansible-collections/ansible.netcommon#440). ansible.utils - Add ipcut filter plugin.(ansible-collections/ansible.utils#251) - Add ipv6form filter plugin.(ansible-collections/ansible.utils#230) arista.eos - Add support for overridden operation in bgp_global resource module.
SUMMARY
Adds option to send a CLRF instead of a LF when talking to a device via telnet.
ISSUE TYPE
COMPONENT NAME
telnet
ADDITIONAL INFORMATION
When attempting to use this plugin to send commands to a service that uses telnet I noticed that it required CLRF to "submit" the input (in this case being the username prompt). After just changing the strings to be CLRF I decided to add the functionality just incase someone else tries to use it in the future and hits this issue.
I've tested the code with the play that I was attempting to use it with success and original functionality should stay the same to not break existing plays.
Please let me know if you'd like me to make any changes. Thanks.