From 075b733475080440a97083ba2dfae50bfc54531a Mon Sep 17 00:00:00 2001 From: ospfbgp Date: Tue, 9 May 2017 13:42:06 -0400 Subject: Add support for Avaya VSP Adding support Avaya VSP Operating System Software(VOSS). Tested both ssh and telnet. --- lib/oxidized/model/voss.rb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 lib/oxidized/model/voss.rb (limited to 'lib/oxidized') 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 -- cgit v1.2.1