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

Issue #523: hw.network.up metric not reported for WARN or ALARM states #524

Conversation

NassimBtk
Copy link
Member

@NassimBtk NassimBtk commented Dec 18, 2024

Fixed LinkStatus state mapping.

Details
This pull request includes changes to the LinkStatus enum and the addition of a new test class to ensure the correct interpretation of state values. The most important changes include updating the LinkStatus enum to handle new states and adding a comprehensive test to verify the interpretation logic.

Updates to LinkStatus enum:

Addition of test class:


Testing
Before
Reported power: 378W
{9C056755-AA1C-4EAC-A245-BDEB2ADDFB09}
After
Reported power: 278W
{CB86C0EC-D499-4C56-A6C5-88EE8158EA6E}

@NassimBtk NassimBtk merged commit 55e55ba into main Dec 18, 2024
2 checks passed
@NassimBtk NassimBtk deleted the feature/issue-523-hwnetworkup-metric-not-reported-for-connectors-with-link-state-as-warn-or-alarm branch December 18, 2024 18:06
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.

hw.network.up metric not reported for connectors with WARN or ALARM link state
3 participants