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

fix: Add 'parent_interface' parameter for l2/l3 subinterface modules #552

Merged
merged 2 commits into from
Apr 11, 2024

Conversation

michalbil
Copy link
Collaborator

@michalbil michalbil commented Feb 29, 2024

Description

Add new parent_interface parameter for panos_l2_subinterface and panos_l3_subinterface modules. The parameter is optional, except for case when state is set to gathered.

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

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

Copy link
Collaborator

@horiagunica horiagunica left a 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 👍 !

Copy link
Collaborator

@adambaumeister adambaumeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@michalbil michalbil force-pushed the subinterfaces-parent-parameter branch from 20d2b18 to 2a6852a Compare April 11, 2024 13:26
@michalbil michalbil merged commit 73c28a8 into develop Apr 11, 2024
16 checks passed
github-actions bot pushed a commit that referenced this pull request Apr 17, 2024
## [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))
Copy link

🎉 This PR is included in version 2.20.0 🎉

The release is available on Ansible Galaxy and GitHub release

Posted by semantic-release bot

@alperenkose alperenkose deleted the subinterfaces-parent-parameter branch September 24, 2024 08:08
github-actions bot pushed a commit to alperenkose/pan-os-ansible that referenced this pull request Sep 24, 2024
## [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))
github-actions bot pushed a commit to alperenkose/pan-os-ansible that referenced this pull request Sep 25, 2024
## [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))
github-actions bot pushed a commit to alperenkose/pan-os-ansible that referenced this pull request Sep 25, 2024
## [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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trying to gather L3 subinterfaces fails in initial_handling()
3 participants