-
Notifications
You must be signed in to change notification settings - Fork 71
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
ACL trouble with established tcp rule #139
Comments
Hi @michalkolar , I used your playbook and verified using the state Can you please give more information on
Once I have the information, I will be glad to work on the fix. Thank you! |
Hi @GomathiselviS, thanks you for reply. My playbook is this: `- name: "Demonstrate connecting to switches" tasks:
and this is error log i now tested when switch ACL rules is clean... |
Hi @michalkolar Thanks for providing the information. The issue is seen when the play is executed in python 2.7 env . A PR is up with the fix. |
Hi @GomathiselviS thanks you. Now i have problem with sorting command to rewrite switch ACL. for example in overridden: `- name: "Demonstrate connecting to switches" tasks:
when in switch exist this rules make command with non-logic... when change state to "replaced" |
Hi @GomathiselviS , any news? |
Hi
I have a problem generating an ACL if the rules contain tcp flag established.
File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/modules/eos_acls.py", line 932, in <module> File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/modules/eos_acls.py", line 927, in main File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/module_utils/network/eos/config/acls/acls.py", line 89, in execute_module File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/module_utils/network/eos/config/acls/acls.py", line 56, in get_acls_facts File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/facts.py", line 110, in get_facts File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/facts/facts.py", line 131, in get_network_resources_facts File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/acls/acls.py", line 78, in populate_facts File "/tmp/ansible_arista.eos.eos_acls_payload_Fp0fOC/ansible_arista.eos.eos_acls_payload.zip/ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/acls/acls.py", line 310, in render_config AttributeError: 'list' object has no attribute 'copy'
How to reproduce?
I edited ansible collections file ansible_collections/arista/eos/plugins/module_utils/network/eos/facts/acls/acls.py line 310 and replace copy() function with [:], works fine.
But I have another problem, when testing rule which I wrote at the beginning, parser not working ok.
If I run ansible multiple times ...
but when i delete ACL list from switch, first run is OK. This problem is in overridden and replaced writing mode.
The text was updated successfully, but these errors were encountered: