summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/ios.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-08-06 13:50:38 +0300
committerSaku Ytti <saku@ytti.fi>2014-08-06 13:50:38 +0300
commit91b7a0de8dfcabf70f777f97fe8045030ce3c5fc (patch)
treec025e514694c28459e1cb235e1818759296bd6c0 /lib/oxidized/model/ios.rb
parent658c824d76e916db8bc7369a70f5cb80bed2a023 (diff)
small model changes
- ios show first line of 'show version' - junos display omitted config
Diffstat (limited to 'lib/oxidized/model/ios.rb')
-rw-r--r--lib/oxidized/model/ios.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/oxidized/model/ios.rb b/lib/oxidized/model/ios.rb
index 186c9e8..d2b4996 100644
--- a/lib/oxidized/model/ios.rb
+++ b/lib/oxidized/model/ios.rb
@@ -28,6 +28,10 @@ class IOS < Oxidized::Model
cfg
end
+ cmd 'show version' do |cfg|
+ comment cfg.lines.first
+ end
+
cmd 'show inventory' do |cfg|
comment cfg
end