summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorRobbFromIT <38932246+RobbFromIT@users.noreply.github.com>2018-09-17 15:25:18 -0500
committerWild Kat <wk@users.noreply.github.com>2018-09-17 22:25:18 +0200
commita0b0ec5b06d5fb1890aa38d6c1cb319861573ca7 (patch)
treee25ca2cfafb239bf64ab7cc2b6f1df1b6c27daf7 /lib/oxidized/model
parent51dc441aa4e3f753665a8ecb053687747f9122c2 (diff)
fixed output issues with comtrol model (#1524)
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/comtrol.rb10
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