From a0b0ec5b06d5fb1890aa38d6c1cb319861573ca7 Mon Sep 17 00:00:00 2001 From: RobbFromIT <38932246+RobbFromIT@users.noreply.github.com> Date: Mon, 17 Sep 2018 15:25:18 -0500 Subject: fixed output issues with comtrol model (#1524) --- lib/oxidized/model/comtrol.rb | 10 +++++----- 1 file 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 -- cgit v1.2.1