From cd41bb4cd4c031e951854bfc46ad77fd934a6789 Mon Sep 17 00:00:00 2001 From: ignaqui Date: Tue, 1 Aug 2017 09:04:01 -0400 Subject: Driver for Westell 8178G and Westell 8266G devices --- lib/oxidized/model/weos.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/oxidized/model/weos.rb (limited to 'lib') diff --git a/lib/oxidized/model/weos.rb b/lib/oxidized/model/weos.rb new file mode 100644 index 0000000..1b20286 --- /dev/null +++ b/lib/oxidized/model/weos.rb @@ -0,0 +1,22 @@ +class WEOS < Oxidized::Model + + #Westell WEOS, works with Westell 8178G, Westell 8266G + + prompt /^(\s[\w.@-]+[#>]\s?)$/ + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + + cmd 'show running-config' do |cfg| + cfg + end + + cfg :telnet do + username /login:/ + password /assword:/ + post_login 'cli more disable' + pre_logout 'logout' + end + +end -- cgit v1.2.1