diff options
Diffstat (limited to 'lib')
-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 |