diff options
author | ytti <saku@ytti.fi> | 2017-05-14 17:38:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-14 17:38:03 +0300 |
commit | 19ac4fd67bc2fb3a980e0b62a6e26ee1c42ff700 (patch) | |
tree | 2a98e1e1d32cd16dacf8b12763d80a107b1fd644 | |
parent | 4854deb9e40b060a55d230cfb49a8e93e3346ac8 (diff) | |
parent | 89aa488c7bd6bf90adc17824fd42850390bdb0c5 (diff) |
Merge pull request #846 from InsaneSplash/routeros-changelog
Included the changelog for RouterOS
-rw-r--r-- | lib/oxidized/model/routeros.rb | 4 |
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 |