summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/routeros.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/routeros.rb')
-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