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(stormshield/api): mode interfaces wrong mapped values' #5091

Conversation

garnier-quentin
Copy link
Contributor

@garnier-quentin garnier-quentin commented Jul 4, 2024

Community contributors

Description

Currently values mapped are:

my $map_state = { 0 => 'disabled', 1 => 'enabled' };
my $map_plugged = { 0 => 'unplugged', 1 => 'plugged' };

It should be:

my $map_state = { 0 => 'down', 1 => 'up' };
my $map_plugged = { 0 => 'passive', 1 => 'active' };

https://documentation.stormshield.eu/SNS/v4/en/Content/CLI_Serverd_Commands_reference_Guide_v4/Commands/serverd/MONITOR.INTERFACE.htm

CTOR-743

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

How this pull request can be tested ?

Checklist

  • I have followed the coding style guidelines provided by Centreon
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have rebased my development branch on the base branch (develop).
  • I have provide data or shown output displaying the result of this code in the plugin area concerned.

@garnier-quentin garnier-quentin requested a review from a team as a code owner July 4, 2024 09:46
@garnier-quentin garnier-quentin requested a review from Evan-Adam July 4, 2024 09:46
@lucie-dubrunfaut lucie-dubrunfaut added the bugfix fixing bug (PR Only) label Sep 10, 2024
@omercier omercier merged commit f5f2103 into centreon:develop Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix fixing bug (PR Only)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants