-
Notifications
You must be signed in to change notification settings - Fork 49
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
issue with sending very long commands with routeros.command: #184
Comments
it's possible that issue related to ansible.netcommon.network_cli or paramiko. if so please close the issue. |
This sounds like a bug in ansible.netcommon (the error message seems to indicate that paramiko wasn't involved, but instead libssh). Which version of ansible.netcommon are you using? |
ansible --version | grep collection ansible-galaxy collection list /usr/local/lib/python3.10/site-packages/ansible_collectionsCollection Version ansible.netcommon 2.6.1 /Users/leonisa/.ansible/collections/ansible_collectionsCollection Version ansible.netcommon 3.1.0 |
You might want to try ansible.netcommon 5.1.1, the latest release. |
thanks, i'll try it asap. |
doesn't work with
same result
|
i have used local rendering of a config and then pushing and importing files on a device as a workaround.
|
Which version of ansible_pylibssh (https://github.com/ansible/pylibssh) do you have installed? That library seems to use |
Hello, version of the package ansible-pylibssh is 1.1.0. I am ready to entirely change venv ( version of python, libraries etc) |
SUMMARY
i have simple playbook to deploy firewall rules into my mikrotik devices with routeros.command, it doesn't work with long lines, only with short. My lines if short, because i use some checking logic before push commands on device.
ISSUE TYPE
COMPONENT NAME
routeros.command
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
sw_vers
ProductName: macOS
ProductVersion: 13.4
BuildVersion: 22F66
STEPS TO REPRODUCE
run playbook with
ansible-playbook spb-routers.yaml --tags rtr_firewall_fitler_rules
host_vars for rtr-01
firewall_filter_lines:
EXPECTED RESULTS
expected result is receiving changed state for all lines in playbook, but it works only for shortest line:
ACTUAL RESULTS
error:
ssh_type libssh error Negative size passed to PyBytes_FromStringAndSize
msg: Failed to write to ssh channel
The text was updated successfully, but these errors were encountered: