Skip to content

Commit

Permalink
Merge pull request #3225 from systeembeheerder/fix3180
Browse files Browse the repository at this point in the history
replace /system/routerboard with /system/resource
  • Loading branch information
robertcheramy authored Sep 9, 2024
2 parents 26f48bd + 90d5ec2 commit d12d65d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- rgos: also strip "System uptime" for installed modules (@spike77453)
- fixed digest authentication when using http input (@spike77453)
- fixed aosw prompt; now working with ArubaOS 8 (@mabezi, @robertcheramy)
- routeros: fix system info for CHR. Fixes #3180 (@systeembeheerder)

## [0.30.1 – 2024-04-12]

Expand Down
4 changes: 2 additions & 2 deletions lib/oxidized/model/routeros.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class RouterOS < Oxidized::Model
cfg
end

cmd '/system routerboard print' do |cfg|
cfg = cfg.each_line.grep(/(model|firmware-type|current-firmware|serial-number):/).join
cmd '/system resource print' do |cfg|
cfg = cfg.each_line.grep(/(version|factory-software|total-memory|cpu|cpu-count|total-hdd-space|architecture-name|board-name|platform):/).join
comment cfg
end

Expand Down

0 comments on commit d12d65d

Please sign in to comment.