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

Extend zynos.rb content #2969

Merged
merged 8 commits into from
Jan 29, 2024
Merged

Conversation

sharteeya
Copy link
Contributor

Pre-Request Checklist

  • Passes rubocop code analysis (try rubocop --auto-correct)
  • Tests added or adapted (try rake test)
  • Changes are reflected in the documentation
  • User-visible changes appended to CHANGELOG.md

Description

Extend zynos.rb content since it does not have an update for a while.
New contents have tested on the following ZyNOS version:

  • V4.10 (2014 - GS2210)
  • V4.70 (2021 - GS2220)

@aschaber1
Copy link
Collaborator

Hello @sharteeya , please add a line to changelog.

lib/oxidized/model/zynos.rb Dismissed Show dismissed Hide dismissed
lib/oxidized/model/zynos.rb Dismissed Show dismissed Hide dismissed
lib/oxidized/model/zynos.rb Dismissed Show dismissed Hide dismissed
lib/oxidized/model/zynos.rb Dismissed Show dismissed Hide dismissed
@sharteeya
Copy link
Contributor Author

@aschaber1 Changes added into changelog. Thanks.

@github-actions github-actions bot added the Stale label Jan 15, 2024
@robertcheramy
Copy link
Collaborator

@sharteeya - please correct the unsuccessful checks

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1381043) 65.96% compared to head (98ef850) 65.96%.
Report is 7 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2969   +/-   ##
=======================================
  Coverage   65.96%   65.96%           
=======================================
  Files          30       30           
  Lines        1522     1522           
=======================================
  Hits         1004     1004           
  Misses        518      518           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sharteeya
Copy link
Contributor Author

@robertcheramy
I've removed trailing whitespaces to pass test 3.0, 3.1 and 3.2. But I have no idea why CodeQL issued Bad HTML filtering regexp as the regex is not for HTML. Is there anything I can do to solve the problem?

@robertcheramy
Copy link
Collaborator

@sharteeya I dismissed the alerts, as they are false positive.
I see that you commented cmd 'config-0' out. I have never seen a zynos in my life, so my understanding might be wrong:

  • you changed the model so that the config could be read by ssh / telnet
  • the cmd 'config-0' would be for ftp (see docs/Model-Notes/XGS4600-Zyxel.md)
    Do we introduce a regression here?

@sharteeya
Copy link
Contributor Author

@robertcheramy Thanks for helping.

  • That's right. The config could be read via ssh and telnet with those changes.
  • Unfortunately, I'm not quite understand about XGS4600 series and lack of information about it. Shall we keep those part of TFTP with comment and leave some info? Then users who need TFTP, they can just remove # to enable TFTP config backup.

@robertcheramy
Copy link
Collaborator

So you are renewing the whole zynos model so it will work with ssh/telnet only. It's okay, and should be documented:

  • in CHANGELOG.md (backup with ftp won't work anymore - open an issue if you still need it )
  • in docs/Model-Notes/XGS4600-Zyxel.md (uncoment the ftp lines in zynos.rb to use ftp)
  • in zynos.rb ("uncomment folowing lines to use ftp", and cfg :ftp do // end should also be commented out)

Could you modify the PR with this points?

@sharteeya
Copy link
Contributor Author

Of course, my pleasure.
I'll push those changes later.

@robertcheramy
Copy link
Collaborator

Thanks!

@robertcheramy robertcheramy merged commit 7d0589e into ytti:master Jan 29, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants