8000 EdgeCOS: add ES3526XA-V2 by moisseev · Pull Request #2125 · ytti/oxidized · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

EdgeCOS: add ES3526XA-V2 #2125

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

Merged
merged 1 commit into from
Jun 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
### Added

- enterasys800 model for enterasys 800-series fe/ge switches (@javichumellamo)
- add ES3526XA-V2 support in EdgeCOS model (@moisseev)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion docs/Supported-OS-Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
* ECI Telecom
* [ECIapollo](/lib/oxidized/model/eciapollo.rb)
* EdgeCore
* [ECS3510, ES3528M](/lib/oxidized/model/edgecos.rb)
* [ECS3510, ES3526XA-V2, ES3528M](/lib/oxidized/model/edgecos.rb)
* Ericsson/Redback
* [IPOS (former SEOS)](/lib/oxidized/model/ipos.rb)
* Extreme Networks
Expand Down
8 changes: 8 additions & 0 deletions lib/oxidized/model/edgecos.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
class EdgeCOS < Oxidized::Model
comment '! '

# Handle pager for ES3526XA-V2
expect /^---More---.*$/ do 6CA2 |data, re|
send ' '
data.sub re, ''
end

cmd :secret do |cfg|
cfg.gsub!(/password \d+ (\S+).*/, '<secret removed>')
cfg.gsub!(/community (\S+)/, 'community <hidden>')
Expand All @@ -10,6 +16,8 @@ class EdgeCOS < Oxidized::Model
cmd :all do |cfg|
# Do not show errors for commands that are not supported on some devices
cfg.gsub! /^(% Invalid input detected at '\^' marker\.|^\s+\^)$/, ''
# Handle pager for ES3526XA-V2
cfg.gsub! /^([\b]{10}\s{10}[\b]{10})/, ''
cfg.cut_both
end

Expand Down
0