summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/weos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/weos.rb')
-rw-r--r--lib/oxidized/model/weos.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/oxidized/model/weos.rb b/lib/oxidized/model/weos.rb
new file mode 100644
index 0000000..2856666
--- /dev/null
+++ b/lib/oxidized/model/weos.rb
@@ -0,0 +1,20 @@
+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