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

aoscx_acl fault with icmp-type - values in post body not configurable #106

Open
git4m opened this issue May 2, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@git4m
Copy link

git4m commented May 2, 2024

Hi,

tested with latest aoscx collection version and latest pyaoscx:

  • arubanetworks.aoscx 4.4.0
  • pyaoscx 2.6.0 AOS-CX Python Modules
 - name: Add ACL task (AOSCX)
      tags: [ "task_acl2" ]
      arubanetworks.aoscx.aoscx_acl:
        name: test_acl2
        type: ipv4
        state: update
        acl_entries:
          60: 
            action: permit
            protocol: icmp
            icmp-type: echo-reply

This should produce an acl with
60 permit icmp any any icmp-type echo-reply

IT should be supported according to:

The full traceback is:
  File "/tmp/ansible_arubanetworks.aoscx.aoscx_acl_payload_0f6qwuiw/ansible_arubanetworks.aoscx.aoscx_acl_payload.zip/ansible_collections/arubanetworks/aoscx/plugins/modules/aoscx_acl.py", line 638, in main
  File "/home/user/proj/network-automation/.venv/lib/python3.9/site-packages/pyaoscx/pyaoscx_module.py", line 40, in ensure_connected
    return fnct(self, *args, **kwargs)
  File "/home/user/proj/network-automation/.venv/lib/python3.9/site-packages/pyaoscx/acl_entry.py", line 408, in apply
    modified = self.create()
  File "/home/user/proj/network-automation/.venv/lib/python3.9/site-packages/pyaoscx/pyaoscx_module.py", line 40, in ensure_connected
    return fnct(self, *args, **kwargs)
  File "/home/user/proj/network-automation/.venv/lib/python3.9/site-packages/pyaoscx/acl_entry.py", line 538, in create
    raise GenericOperationError(response.text, response.status_code)
fatal: [SWITCH]: FAILED! => changed=false
  invocation:
    module_args:
      acl_entries:
        '60':
          action: permit
          icmp-type: echo-reply
          protocol: icmp
      name: test_acl2
      state: update
      type: ipv4
  msg: '''GENERIC OPERATION ERROR: values in post body not configurable\n: Code: 400'''
@tchiapuziowong
Copy link
Member

Thank you @git4m for bringing this to our attention, I'll create a ticket and will update the issue when progress is made!

@tchiapuziowong tchiapuziowong added the bug Something isn't working label Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants