Skip to content

enh(network::paloalto::api) Add host discovery to handle Panorama#6188

Draft
scresto31 wants to merge 11 commits into
developfrom
CTOR-2278-plugin-network-paloalto-api-add-host-discovery-to-handle-panorama
Draft

enh(network::paloalto::api) Add host discovery to handle Panorama#6188
scresto31 wants to merge 11 commits into
developfrom
CTOR-2278-plugin-network-paloalto-api-add-host-discovery-to-handle-panorama

Conversation

@scresto31

Copy link
Copy Markdown
Contributor

Description

Plugin(network-paloalto-api): add host discovery to handle Panorama

Fixes # CTOR-2278

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Functionality enhancement or optimization (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software

@scresto31 scresto31 self-assigned this May 18, 2026
@scresto31 scresto31 requested review from a team as code owners May 18, 2026 11:49
@scresto31 scresto31 requested review from bouda1, lucie-tirand and sechkem and removed request for a team May 18, 2026 11:49
Comment thread src/network/paloalto/api/plugin.pm Outdated
Comment thread src/centreon/plugins/constants.pm
Comment on lines +125 to +126
next if is_excluded($serial, $self->{option_results}->{include_device_serial}, $self->{option_results}->{exclude_device_serial}, output => $self->{output}) ||
is_excluded($hostname, $self->{option_results}->{include_device_hostname}, $self->{option_results}->{exclude_device_hostname}, output => $self->{output});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
next if is_excluded($serial, $self->{option_results}->{include_device_serial}, $self->{option_results}->{exclude_device_serial}, output => $self->{output}) ||
is_excluded($hostname, $self->{option_results}->{include_device_hostname}, $self->{option_results}->{exclude_device_hostname}, output => $self->{output});
next if is_excluded($serial, $self->{option_results}->{include_device_serial}, $self->{option_results}->{exclude_device_serial}, output => $self->{output})
|| is_excluded($hostname, $self->{option_results}->{include_device_hostname}, $self->{option_results}->{exclude_device_hostname}, output => $self->{output});

Comment thread src/network/paloalto/api/mode/health.pm Outdated
next if is_excluded($name, $self->{option_results}->{include_tunnel_name}, $self->{option_results}->{exclude_tunnel_name});
next if is_excluded($gateway, $self->{option_results}->{include_gateway_name}, $self->{option_results}->{exclude_gateway_name});
next if is_excluded($name, $self->{option_results}->{include_tunnel_name}, $self->{option_results}->{exclude_tunnel_name}, output => $self->{output}) ||
is_excluded($gateway, $self->{option_results}->{include_gateway_name}, $self->{option_results}->{exclude_gateway_name}, output => $self->{output});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
is_excluded($gateway, $self->{option_results}->{include_gateway_name}, $self->{option_results}->{exclude_gateway_name}, output => $self->{output});
next if is_excluded($name, $self->{option_results}->{include_tunnel_name}, $self->{option_results}->{exclude_tunnel_name}, output => $self->{output})
|| is_excluded($gateway, $self->{option_results}->{include_gateway_name}, $self->{option_results}->{exclude_gateway_name}, output => $self->{output});

@scresto31 scresto31 marked this pull request as draft June 11, 2026 08:00
@scresto31

Copy link
Copy Markdown
Contributor Author

I'm moving this PR back to draft until I can validate it on a real environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants