Uninett / zino

Zino 2.0 - Network state monitor for research networks
Apache License 2.0
4 stars 5 forks source link

Use ifalias for Planned Maintenance "str" and "regexp" matching #340

Closed stveit closed 3 months ago

stveit commented 3 months ago

Scope and purpose

Fixes #297

Original zino seems to use ifalias and ifdescr for planned maintenance matching, while intitial PM implementation used only ifdescr. This PR changes it to use ifalias where applicable instead.

Original zino code confuses me so wouldn't be a bad idea for someone else to take a look and see if this PR actually makes the correct changes

Contributor Checklist

Every pull request should have this checklist filled out, no matter how small it is. More information about contributing to Zino can be found in the README.

github-actions[bot] commented 3 months ago

πŸ¦™ MegaLinter status: βœ… SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
βœ… PYTHON black 5 0 0.65s
βœ… PYTHON isort 5 0 0.21s
βœ… PYTHON ruff 5 0 0.01s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

github-actions[bot] commented 3 months ago

Test results

β€‡β€ˆβ€‡β€‡3 filesβ€„β€ƒβ€‡β€ˆβ€‡β€‡3 suites   1m 17s :stopwatch: β€‡β€ˆ550 testsβ€ƒβ€‡β€ˆ550 :white_check_mark: 0 :zzz: 0 :x: 1β€ˆ626 runsβ€Šβ€ƒ1β€ˆ624 :white_check_mark: 2 :zzz: 0 :x:

Results for commit a966ba4b.

:recycle: This comment has been updated with latest results.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.20%. Comparing base (a9a85fb) to head (a966ba4). Report is 52 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #340 +/- ## ======================================= Coverage 98.20% 98.20% ======================================= Files 64 64 Lines 7926 7930 +4 ======================================= + Hits 7783 7787 +4 Misses 143 143 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

johannaengland commented 3 months ago

I would like to have a news fragment for that, because this is a functionality change

stveit commented 3 months ago

Did another look on original code, and seems it uses both ifalias and ifdescr in different situations. I have changed things to reflect that

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud