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

Update xos.rb prompt to work with stacked switches #2117

Merged
merged 2 commits into from Jun 11, 2020
Merged

Conversation

Faddy96
Copy link
Contributor

@Faddy96 Faddy96 commented Jun 4, 2020

The current xos.rb regexp for prompt does not take stacked switches into account and therefore only works for standalone devices. This is a slight update to make the prompt regexp include stacked switches.
Reference: #2107

This update also fixes an issue that wasn't entirely solved in the previous pull request for xos.rb where Oxidized can't match the prompt if the XOS-device has not saved its configuration.
Reference: #2113

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

The current xos.rb regexp for prompt does not take stacked switches into account and therefore only works for standalone devices. This is a slight update to make the prompt regexp include stacked switches.
Reference: ytti#2107

This update also fixes an issue that wasn't entirely solved in the previous pull request for xos.rb where Oxidized can't match the prompt if the XOS-device has not saved its configuration.
Reference: ytti#2113
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2020

Codecov Report

Merging #2117 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2117   +/-   ##
=======================================
  Coverage   63.32%   63.32%           
=======================================
  Files          30       30           
  Lines        1497     1497           
=======================================
  Hits          948      948           
  Misses        549      549           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f9d3715...2dfe677. Read the comment docs.

@Faddy96 Faddy96 marked this pull request as ready for review June 4, 2020 09:08
@wk
Copy link
Contributor

wk commented Jun 11, 2020

Pulling this in!
Closes #2107
Closes #2113

@MrHamel
Copy link

MrHamel commented Feb 9, 2021

When will there be a release that includes this? It's been about seven months since this was fixed, and have over 500 switch stacks that can't be backed up without it. Thanks!

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.

None yet

4 participants