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

feat: ipsec_tunnel_status check Proxy ID support #174

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

alperenkose
Copy link
Collaborator

Description

This PR adds support for Proxy IDs to ipsec_tunnel_status readiness check.
ipsec_tunnel_status check now accepts a list of proxy_ids to check tunnel status against the provided list, or it checks for all configured Proxy IDs if not provided.
By default it will return success if any Proxy ID is in active state for the ipsec tunnel or require_all_active flag can be set to require all Proxy IDs to be in active state.

Motivation and Context

ipsec_tunnel_status readiness check didn't work if IPSec tunnel was configured with Proxy IDs.
With this enhancement it checks for all the proxy ids for the given tunnel name and returns success if any is in active state. It is also possible to provide a list of proxy ids to limit the check on specific Proxy IDs.

How Has This Been Tested?

Tested with the written unittests.

Types of changes

  • New feature (non-breaking change which adds functionality)

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.

`ipsec_tunnel_status` check to accept a list of `proxy_ids` to check tunnel
status against the provided list, checks for all configured Proxy IDs if not
provided.
Returns success if any Proxy ID is in active state for the ipsec tunnel or
`require_all_active` flag can be set to require all Proxy IDs to be in active state.
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  panos_upgrade_assurance
  check_firewall.py
Project Total  

This report was generated by python-coverage-comment-action

Copy link

A Preview PR in PanDev repo has been created. You can view it here.

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.

Great work - this will surely come in handy! 👍

@alperenkose alperenkose merged commit 7ae2bd5 into main Oct 30, 2024
8 checks passed
@alperenkose alperenkose deleted the ipsec-tunnel-status-proxyids branch October 30, 2024 09:27
github-actions bot pushed a commit that referenced this pull request Oct 30, 2024
## [1.1.0](v1.0.1...v1.1.0) (2024-10-30)

### Features

* ipsec_tunnel_status check Proxy ID support ([#174](#174)) ([7ae2bd5](7ae2bd5))
@horiagunica
Copy link
Collaborator

🎉 This PR is included in version 1.1.0 🎉

The release is available on PyPI and GitHub release

Posted by semantic-release bot

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.

2 participants