diff options
author | RobbFromIT <38932246+RobbFromIT@users.noreply.github.com> | 2018-09-17 15:25:18 -0500 |
---|---|---|
committer | Wild Kat <wk@users.noreply.github.com> | 2018-09-17 22:25:18 +0200 |
commit | a0b0ec5b06d5fb1890aa38d6c1cb319861573ca7 (patch) | |
tree | e25ca2cfafb239bf64ab7cc2b6f1df1b6c27daf7 | |
parent | 51dc441aa4e3f753665a8ecb053687747f9122c2 (diff) |
fixed output issues with comtrol model (#1524)
-rw-r--r-- | lib/oxidized/model/comtrol.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/oxidized/model/comtrol.rb b/lib/oxidized/model/comtrol.rb index a325e2b..fc956c6 100644 --- a/lib/oxidized/model/comtrol.rb +++ b/lib/oxidized/model/comtrol.rb @@ -11,13 +11,13 @@ class Comtrol < Oxidized::Model data.sub re, '' end - cmd :all do |cfg| - cfg.gsub! /^.*\e7/, '' + cmd 'show version' do |cfg| + comment cfg end - cmd 'show version' - - cmd 'show running-config' + cmd 'show running-config' do |cfg| + cfg + end cfg :telnet do username /^User name:/i |