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

arubaoss_acl_policy adding new ace at the end of the ACL #71

Open
seunay0 opened this issue Mar 16, 2023 · 0 comments
Open

arubaoss_acl_policy adding new ace at the end of the ACL #71

seunay0 opened this issue Mar 16, 2023 · 0 comments

Comments

@seunay0
Copy link

seunay0 commented Mar 16, 2023

Hi, I tried inserting an ACE to an existing ACL using the arubaoss_acl_policy module and specified the sequence number e.g. 11, however, the ACE is inserted as the last statement in the existing ACL e.g. 30 and not at the specified sequence number. Pls see an example below

- name: configure test acl
  arubaoss_acl_policy:
    acl_name: test-acl
    acl_type: AT_EXTENDED_IPV4
    acl_action: "{{item.action | default ('AA_PERMIT')}}"
    source_ip_address: "{{x.x.x.x}}"
    source_ip_mask: "{{x.x.x.x}}"
    protocol_type: PT_IP
    destination_ip_address: "{{x.x.x.x}}"
    destination_ip_mask: "{{x.x.x.x}}"                                                              
    state: create
  loop:
    - { seq_no: '10', destip: "{{x.x.x.x}}" }  
    - { action: 'AA_DENY', seq_no: '11', srcip: 'x.x.x.x', srcmask: 'x.x.x.x', destip: 'x.x.x.x', destmask: 'x.x.x.x' }
    - { srcip: 'x.x.x.x', seq_no: '20', srcmask: 'x.x.x.x', destip: 'x.x.x.x', destmask: 'x.x.x.x' }

I noticed I have no issues

  • when I attempt to insert via the CLI or
  • if I create a new task just for the specific ACE that I'll like to insert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant