summaryrefslogtreecommitdiff
path: root/lib/oxidized
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-05-14 17:38:03 +0300
committerGitHub <noreply@github.com>2017-05-14 17:38:03 +0300
commit19ac4fd67bc2fb3a980e0b62a6e26ee1c42ff700 (patch)
tree2a98e1e1d32cd16dacf8b12763d80a107b1fd644 /lib/oxidized
parent4854deb9e40b060a55d230cfb49a8e93e3346ac8 (diff)
parent89aa488c7bd6bf90adc17824fd42850390bdb0c5 (diff)
Merge pull request #846 from InsaneSplash/routeros-changelog
Included the changelog for RouterOS
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 94f3c4a..31650c7 100644
--- a/lib/oxidized/model/routeros.rb
+++ b/lib/oxidized/model/routeros.rb
@@ -10,6 +10,10 @@ class RouterOS < Oxidized::Model
comment cfg
end
+ cmd '/system history 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