Skip to content

Commit

Permalink
replace /system/routerboard with /system/resource
Browse files Browse the repository at this point in the history
  • Loading branch information
systeembeheerder committed Jul 12, 2024
1 parent 632cd5e commit 058abbd
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 @@ -33,6 +33,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
- docs: run Git garbage collection to address performance issues. Fixes #3121 (@robertcheramy)
- saos: fixed handling of 'unsaved configuration' indicator in prompt (@grbeneke)
- rgos: also strip "System uptime" for installed modules (@spike77453)
- 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 058abbd

Please sign in to comment.