Skip to content

Conversation

@ArchelonU
Copy link

SUMMARY

Adding the ability to specify an object group of services in the ACL settings.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

acls.py

ADDITIONAL INFORMATION

Now you can add object-group service when creating ACL rule.

To do this, it is enough to specify a new variable "service_object_group":

- name: ACL_NAME
  acl_type: extended
  aces:
    - sequence: '10'
       grant: 'permit'
       service_object_group: 'OG_WITH_MANY_PORTS'
       source:
         object_group: 'OG_SOURCE_HOSTS'
       destination:
         object_group: 'OG_DESTINATION_HOSTS'

What actually translates into a command:

ip access-list extended ACL_NAME
 10 permit object-group OG_WITH_MANY_PORTS object-group OG_SOURCE_HOSTS object-group OG_DESTINATION_HOSTS

@roverflow
Copy link
Member

@ArchelonU Could you please add some tests to verify the change

@ArchelonU
Copy link
Author

@roverflow I have run tests in my branch, added fixes. Now as far as I understand, it requires approval to run testing here. Correct me if I'm wrong. Thx!

@roverflow
Copy link
Member

@ArchelonU, could you please add a new unit test for this change? You can find the existing tests for acls in the tests folder, you can either modify the test to make use of the new attribute you have added or add a new test function. Thanks

@ArchelonU
Copy link
Author

@roverflow Hello! I added some tests in ef9f60b, is there anything else I need to do? Thanks!

@github-actions github-actions bot removed the safe to test For network-integration jobs label Feb 4, 2025
@roverflow roverflow added the safe to test For network-integration jobs label Feb 4, 2025
@ArchelonU
Copy link
Author

Hi! As I understand it, tests, that do not relate to my changes, fail. Should I do something about it or should I just wait?

@roverflow
Copy link
Member

Hi! As I understand it, tests, that do not relate to my changes, fail. Should I do something about it or should I just wait?

Hey @ArchelonU, these test failures are unrelated to your contribution. We're currently investigating them. Meanwhile, we're looking at your PR and will review it and try to get it merged!. Thanks for your contribution!

@github-actions github-actions bot removed the safe to test For network-integration jobs label Feb 5, 2025
@KB-perByte KB-perByte requested review from nickbhasin and removed request for roverflow June 25, 2025 10:09
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

Successfully merging this pull request may close these issues.

2 participants