Uninett / zino

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

Add state converter from zino1 to zino2 #174

Open stveit opened 3 months ago

stveit commented 3 months ago

Fixes #66

Parses .tcl state file from Zino1 and tries to generate a Zino2 equivalent state. Has alot of placeholder functions for stuff that should eventually be supported and some stuff that maybe we will never support? I added a function for every unique command in the state dump I was working with so we are atleast aware of them and can decide which ones are important.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 88.53933% with 51 lines in your changes missing coverage. Please review.

Project coverage is 98.27%. Comparing base (fc89111) to head (d05aa89).

Files Patch % Lines
src/zino/stateconverter/convertstate.py 82.93% 14 Missing :warning:
src/zino/stateconverter/flapping_converter.py 58.82% 14 Missing :warning:
src/zino/stateconverter/bgp_converter.py 80.70% 11 Missing :warning:
src/zino/stateconverter/event_converter.py 96.09% 5 Missing :warning:
src/zino/stateconverter/port_converter.py 88.24% 4 Missing :warning:
src/zino/stateconverter/pm_converter.py 91.30% 2 Missing :warning:
src/zino/stateconverter/bfd_converter.py 96.97% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #174 +/- ## ========================================== - Coverage 98.90% 98.27% -0.63% ========================================== Files 51 60 +9 Lines 6889 7332 +443 ========================================== + Hits 6813 7205 +392 - Misses 76 127 +51 ```

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

github-actions[bot] commented 3 months ago

Test results

    3 files      3 suites   57s :stopwatch:   430 tests   430 :white_check_mark: 0 :zzz: 0 :x: 1 290 runs  1 288 :white_check_mark: 2 :zzz: 0 :x:

Results for commit d05aa892.

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

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
33 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

github-actions[bot] commented 6 days ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON black 92 0 1.52s
✅ PYTHON isort 92 0 0.36s
✅ PYTHON ruff 92 0 0.03s

See detailed report in MegaLinter reports

_MegaLinter is graciously provided by OX Security_

sonarcloud[bot] commented 3 days ago

Quality Gate Passed Quality Gate passed

Issues
20 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