-
Notifications
You must be signed in to change notification settings - Fork 48
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
Bug453 port group #455
base: main
Are you sure you want to change the base?
Bug453 port group #455
Conversation
…otocol section instead of source/destination options.
…tination so that port-group is not mutually exclusive to [host,any,address,prefix,net-group] and also removed it as direct opton of src/dest instead added port-group to argument of port_protocol
…e/destination so that port-group is not direct opton of src/dest instead added port-group to argument of port_protocol
for more information, see https://pre-commit.ci
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 06s |
@ntl-afzaalarif please add uts and integration tests |
Hi @ashwini-mhatre, this is my first PR. Just noticed a bug and wanted to highlight. Can you please guide on how to add uts and integration tests? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ntl-afzaalarif, i can see there are a few changes present, thanks for contributing, it would be amazing if you could make changes according to the CONTRIBUTION guidelines that we follow
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 09s |
@ntl-afzaalarif please refer following file for uts https://github.com/ansible-collections/cisco.iosxr/blob/main/tests/unit/modules/network/iosxr/test_iosxr_acls.py |
@ntl-afzaalarif please refer following directory for inegration tests https://github.com/ansible-collections/cisco.iosxr/tree/main/tests/integration/targets/iosxr_acls/tests/cli |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 3m 30s |
for more information, see https://pre-commit.ci
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 5m 14s |
for more information, see https://pre-commit.ci
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 25s |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 4m 09s |
Label error. Requires exactly 1 of: bug, enhancement, major, minor, patch, skip-changelog. Found: |
Build failed. ❌ ansible-galaxy-importer RETRY_LIMIT in 7m 05s |
Build failed. ✔️ ansible-galaxy-importer SUCCESS in 3m 19s |
SUMMARY
The iosxr acls module was wrongly setting port-group param to be mutually exclusive with net-group,host,address,any and prefix in source and destination of ACE. The following ACE was correct and was a part of ACL on cisco ios xr9k series router. 1390 permit udp any 1.1.1.1 0.0.0.0 port-group ABC
As can be seen the [address(1.1.1.1), wildcard(0.0.0.0)] and port-group(ABC) are placed together, which as per previously implemented logic of iosxr.acls ansible module was inconsistent and should be mutually exclusive.
I have modified the iosxr.acls module to now fix this problem, moreover removed the port-group as direct option to the source/destination and moved it under the port_protocol options. Also updated the ansible-doc for it.
This fixes #453
ISSUE TYPE
COMPONENT NAME
cisco.iosxr.iosxr_acls
ADDITIONAL INFORMATION