From 0a6cbe3d10dd6d78cf8ec93ad66ebd69e0780946 Mon Sep 17 00:00:00 2001 From: Robert Drake Date: Fri, 24 Mar 2017 16:46:21 -0400 Subject: added support for VTP --- lib/oxidized/model/ios.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/oxidized/model') diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb index d155aa6..a522257 100644 --- a/lib/oxidized/model/ios.rb +++ b/lib/oxidized/model/ios.rb @@ -76,6 +76,12 @@ class IOS < Oxidized::Model comment comments.join "\n" end + cmd 'show vtp status' do |cfg| + cfg.gsub! /^$\n/, '' + cfg.gsub! /^/, 'VTP: ' if (!cfg.empty?) + comment "#{cfg}\n" + end + cmd 'show inventory' do |cfg| comment cfg end -- cgit v1.2.1