-
Notifications
You must be signed in to change notification settings - Fork 917
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
HP MSM Wireless Controller support #1809
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1809 +/- ##
==========================================
+ Coverage 63.28% 63.42% +0.13%
==========================================
Files 30 30
Lines 1490 1490
==========================================
+ Hits 943 945 +2
+ Misses 547 545 -2
Continue to review full report at Codecov.
|
Looks good! I've added an attribution line for the change to Could you add some detail as to why the |
Thanks for looking at it @wk What was kept/discarded for The Who/When lines are from the user that runs the
The igmp proxy lines contain funny characters that also change between runs. I don't know why, but we excluded it in rancid, and in oxidized it also changes between each run, so I added an exclusion for it. Did you want me to add comments to the class file as to why it's excluded? |
Thanks for the detail! I'd suggest reworking the cleanup section for ease of comprehension along these lines (pesudocode, untested): cmd 'show all config' do |cfg|
cfg = cfg.each_line.reject { |line| line.match /^running configuration:/ }.join
cfg = cfg.each_line.reject { |line| line.match /(^#\s+Who:)|(^#\s+When:)/ }.join
cfg = cfg.each_line.reject { |line| line.match /^[ \t]*igmp proxy (upstream|downstream)/ }.join
cfg
end A comment around the igmp line explaining why it is removed might also benefit users, as it's generally expected that a user can recover from an archived configuration back to the original state - so if some elements are omitted breaking that promise, it's great to document them. |
@wk Thanks for that. I've made updates suggested. |
Great, thanks for the touch-ups! |
Pre-Request Checklist
rubocop --auto-correct
)rake test
)Description
Added support for the HP MSM Wireless Controller. Tested on a HP MSM720