diff options
author | byq <gcichowski@gmail.com> | 2017-02-17 22:59:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-17 22:59:04 +0100 |
commit | d3ae79baf582690704b200eb0295394beb9d8a4b (patch) | |
tree | af89ee32c0e8b4f8612a26c5a11c3fbb5cecf0c8 /lib/oxidized/model/routeros.rb | |
parent | abf143c0934190c3d3b1544ceda7dcaee8b87723 (diff) |
add software version
added software version
Diffstat (limited to 'lib/oxidized/model/routeros.rb')
-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 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 |