summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Drake <rfdrake@users.noreply.github.com>2017-03-24 16:46:21 -0400
committerRobert Drake <rfdrake@users.noreply.github.com>2017-03-28 15:07:30 -0400
commit0a6cbe3d10dd6d78cf8ec93ad66ebd69e0780946 (patch)
tree2111eb370849ef19cdfad258cdacb9209c7643ca /lib
parent1148b88b9088e98da579e63fc4fae8b7b2894e9f (diff)
added support for VTP
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/ios.rb6
1 files changed, 6 insertions, 0 deletions
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