summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-05-15 13:49:02 +0300
committerGitHub <noreply@github.com>2017-05-15 13:49:02 +0300
commit84582736f0e7642e2390511b4bcd3d3ef4ec6277 (patch)
treef3aca44c7d5be31392a93528429463ddc6be3ca5 /lib
parent19ac4fd67bc2fb3a980e0b62a6e26ee1c42ff700 (diff)
parent361c1da35cce14d430f14c6c27dce2194183127f (diff)
Merge pull request #848 from ospfbgp/patch-3
Update voss.rb because of git diff
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/voss.rb13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/oxidized/model/voss.rb b/lib/oxidized/model/voss.rb
index 075f001..599462a 100644
--- a/lib/oxidized/model/voss.rb
+++ b/lib/oxidized/model/voss.rb
@@ -1,22 +1,25 @@
class Voss < Oxidized::Model
# Avaya VSP Operating System Software(VOSS)
# Created by danielcoxman@gmail.com
- # May 9, 2017
+ # May 15, 2017
# This was tested on vsp4k and vsp8k
comment '# '
prompt /^[^\s#>]+[#>]$/
- cmd 'show sys-info' do |cfg|
- comment cfg
- end
+ # needed for proper formatting after post_login
+ cmd('') { |cfg| comment "#{cfg}\n" }
+ # get some general information about switch
+ cmd('show sys-info card') { |cfg| comment "#{cfg}\n" }
+ cmd('show sys-info fan') { |cfg| comment "#{cfg}\n" }
+ cmd('show sys-info power') { |cfg| comment "#{cfg}\n" }
# more the config rather than doing a show run
cmd 'more config.cfg' do |cfg|
cfg
cfg.gsub! /^[^\s#>]+[#>]$/, ''
- cfg.gsub! /^more config.cfg/, ''
+ cfg.gsub! /^more config.cfg/, '# more config.cfg'
end
cfg :telnet do