-
Notifications
You must be signed in to change notification settings - Fork 98
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
fix: Add 'parent_interface' parameter for l2/l3 subinterface modules #552
Conversation
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.
LGTM! Nice approach in the logic 👍 !
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.
LGTM
20d2b18
to
2a6852a
Compare
## [2.20.0](v2.19.1...v2.20.0) (2024-04-17) ### Features * Add new option to panos_active_in_ha module ([#560](#560)) ([a2870f5](a2870f5)) ### Bug Fixes * Add 'parent_interface' parameter for l2/l3 subinterface modules ([#552](#552)) ([73c28a8](73c28a8)) * **panos_facts.py:** Fixed virtual systems fact name ([#558](#558)) ([0d0fd6d](0d0fd6d))
🎉 This PR is included in version 2.20.0 🎉 The release is available on Ansible Galaxy and GitHub release
|
## [2.20.0](v2.19.1...v2.20.0) (2024-09-24) ### Features * Add additional error handling to some upgrade assurance modules ([PaloAltoNetworks#561](https://github.com/alperenkose/pan-os-ansible/issues/561)) ([c64cd79](c64cd79)) * Add new option to panos_active_in_ha module ([PaloAltoNetworks#560](https://github.com/alperenkose/pan-os-ansible/issues/560)) ([a2870f5](a2870f5)) ### Bug Fixes * Add 'parent_interface' parameter for l2/l3 subinterface modules ([PaloAltoNetworks#552](https://github.com/alperenkose/pan-os-ansible/issues/552)) ([73c28a8](73c28a8)) * new release for failed ci ([3872708](3872708)) * requirements.txt update python version and remove hashes ([905b1eb](905b1eb)) * **panos_facts.py:** Fixed virtual systems fact name ([PaloAltoNetworks#558](https://github.com/alperenkose/pan-os-ansible/issues/558)) ([0d0fd6d](0d0fd6d)) * **panos_security_rule:** state merged with existing values ([PaloAltoNetworks#570](https://github.com/alperenkose/pan-os-ansible/issues/570)) ([db6c32c](db6c32c))
## [2.20.0](v2.19.1...v2.20.0) (2024-09-25) ### Features * Add additional error handling to some upgrade assurance modules ([PaloAltoNetworks#561](https://github.com/alperenkose/pan-os-ansible/issues/561)) ([c64cd79](c64cd79)) * Add new option to panos_active_in_ha module ([PaloAltoNetworks#560](https://github.com/alperenkose/pan-os-ansible/issues/560)) ([a2870f5](a2870f5)) * ee ci for development ([97c31ba](97c31ba)) ### Bug Fixes * Add 'parent_interface' parameter for l2/l3 subinterface modules ([PaloAltoNetworks#552](https://github.com/alperenkose/pan-os-ansible/issues/552)) ([73c28a8](73c28a8)) * new release for failed ci ([3872708](3872708)) * requirements.txt update python version and remove hashes ([905b1eb](905b1eb)) * **panos_facts.py:** Fixed virtual systems fact name ([PaloAltoNetworks#558](https://github.com/alperenkose/pan-os-ansible/issues/558)) ([0d0fd6d](0d0fd6d)) * **panos_security_rule:** state merged with existing values ([PaloAltoNetworks#570](https://github.com/alperenkose/pan-os-ansible/issues/570)) ([db6c32c](db6c32c))
## [2.20.0](v2.19.1...v2.20.0) (2024-09-25) ### Features * Add additional error handling to some upgrade assurance modules ([PaloAltoNetworks#561](https://github.com/alperenkose/pan-os-ansible/issues/561)) ([c64cd79](c64cd79)) * Add new option to panos_active_in_ha module ([PaloAltoNetworks#560](https://github.com/alperenkose/pan-os-ansible/issues/560)) ([a2870f5](a2870f5)) * ee ci for development ([97c31ba](97c31ba)) * test ee ci for release ([a7605af](a7605af)) ### Bug Fixes * Add 'parent_interface' parameter for l2/l3 subinterface modules ([PaloAltoNetworks#552](https://github.com/alperenkose/pan-os-ansible/issues/552)) ([73c28a8](73c28a8)) * new release for failed ci ([3872708](3872708)) * requirements.txt update python version and remove hashes ([905b1eb](905b1eb)) * **panos_facts.py:** Fixed virtual systems fact name ([PaloAltoNetworks#558](https://github.com/alperenkose/pan-os-ansible/issues/558)) ([0d0fd6d](0d0fd6d)) * **panos_security_rule:** state merged with existing values ([PaloAltoNetworks#570](https://github.com/alperenkose/pan-os-ansible/issues/570)) ([db6c32c](db6c32c))
Description
Add new
parent_interface
parameter forpanos_l2_subinterface
andpanos_l3_subinterface
modules. The parameter is optional, except for case when state is set togathered
.So far the parent interface has only been derived from subinterface name. This does not work with gathered state - for example when filter is based on the subinterface name - if it's not provided as a param, modules will fail (see linked issue).
Motivation and Context
Resolves #498
How Has This Been Tested?
Tested locally as well as using newly added integration tests.
Types of changes
Checklist