Skip to content

Commit

Permalink
fix for Aruba remove extra info (#2933)
Browse files Browse the repository at this point in the history
* remove command timestamp output for VRP on huawei USG
remove IP managemt counters on Aruba CX switches

* typo

* fix other commands
  • Loading branch information
blib authored Sep 14, 2023
1 parent 05e0e67 commit 4f2349f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oxidized/model/aoscx.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Aoscx < Oxidized::Model
comment cfg
end

cmd 'show system | exclude "Up Time" | exclude "CPU" | exclude "Memory"' do |cfg|
cmd 'show system | exclude "Up Time|CPU|Memory|Pkts .x|Lowest|Missed"' do |cfg|
comment cfg
end

Expand Down
4 changes: 3 additions & 1 deletion lib/oxidized/model/vrp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,17 @@ class VRP < Oxidized::Model
end

cmd 'display version' do |cfg|
cfg = cfg.each_line.reject { |l| l.match /uptime/ }.join
cfg = cfg.each_line.reject { |l| l.match /uptime|^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d\d\d)? ?(\+\d\d:\d\d)?$/ }.join
comment cfg
end

cmd 'display device' do |cfg|
cfg = cfg.each_line.reject { |l| l.match /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d\d\d)? ?(\+\d\d:\d\d)?$/ }.join
comment cfg
end

cmd 'display current-configuration all' do |cfg|
cfg = cfg.each_line.reject { |l| l.match /^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d(\.\d\d\d)? ?(\+\d\d:\d\d)?$/ }.join
cfg
end
end

0 comments on commit 4f2349f

Please sign in to comment.