summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-18 14:54:11 +0200
committerGitHub <noreply@github.com>2017-02-18 14:54:11 +0200
commita1535a6f8f6b672fdc17c6dcf2af13c074d71c5d (patch)
treeaf89ee32c0e8b4f8612a26c5a11c3fbb5cecf0c8 /lib/oxidized
parentabf143c0934190c3d3b1544ceda7dcaee8b87723 (diff)
parentd3ae79baf582690704b200eb0295394beb9d8a4b (diff)
Merge pull request #732 from byq/master
add software version
Diffstat (limited to 'lib/oxidized')
-rw-r--r--lib/oxidized/model/routeros.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/routeros.rb b/lib/oxidized/model/routeros.rb
index a92ad5e..5717100 100644
--- a/lib/oxidized/model/routeros.rb
+++ b/lib/oxidized/model/routeros.rb
@@ -6,6 +6,10 @@ class RouterOS < Oxidized::Model
comment cfg
end
+ cmd '/system package update print' do |cfg|
+ comment cfg
+ end
+
cmd '/export' do |cfg|
cfg.gsub! /\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]/, '' # strip ANSI colours
cfg.gsub! /\\\r\n\s+/, '' # strip new line