summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-05-14 12:06:00 +0300
committerGitHub <noreply@github.com>2017-05-14 12:06:00 +0300
commit26d9562d17c0d21a4fe21c59a7e703780c400405 (patch)
treed53fbebaca1fd61f68f2c1e5c3aab9c6bbdc97c7
parent2bd1daf21c82cb9e94278a6ca1d95d16f323531a (diff)
parent075b733475080440a97083ba2dfae50bfc54531a (diff)
Merge pull request #836 from ospfbgp/patch-1
Add support for Avaya VSP
-rw-r--r--lib/oxidized/model/voss.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/oxidized/model/voss.rb b/lib/oxidized/model/voss.rb
new file mode 100644
index 0000000..075f001
--- /dev/null
+++ b/lib/oxidized/model/voss.rb
@@ -0,0 +1,33 @@
+class Voss < Oxidized::Model
+ # Avaya VSP Operating System Software(VOSS)
+ # Created by danielcoxman@gmail.com
+ # May 9, 2017
+ # This was tested on vsp4k and vsp8k
+
+ comment '# '
+
+ prompt /^[^\s#>]+[#>]$/
+
+ cmd 'show sys-info' do |cfg|
+ comment cfg
+ end
+
+ # more the config rather than doing a show run
+ cmd 'more config.cfg' do |cfg|
+ cfg
+ cfg.gsub! /^[^\s#>]+[#>]$/, ''
+ cfg.gsub! /^more config.cfg/, ''
+ end
+
+ cfg :telnet do
+ username /Login: $/
+ password /Password: $/
+ end
+
+ cfg :telnet, :ssh do
+ pre_logout 'exit'
+ post_login 'enable'
+ post_login 'terminal more disable'
+ end
+
+end