summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Sousa <danilopopeye@users.noreply.github.com>2017-08-21 18:09:57 -0300
committerGitHub <noreply@github.com>2017-08-21 18:09:57 -0300
commit4042b6907dd5fa07be98c524a0c23f955072652d (patch)
tree23f884ec28441986fc59a0430566cb3e018bbd0c
parente5c0d9928b5c0ae563914f371d95ca7be433746b (diff)
parent1114f719b66188c61b23a7e59ec6c463426285a8 (diff)
Merge pull request #956 from ignaqui/patch-1
Driver for Westell 8178G and Westell 8266G devices
-rw-r--r--README.md2
-rw-r--r--lib/oxidized/model/weos.rb22
2 files changed, 24 insertions, 0 deletions
diff --git a/README.md b/README.md
index 825abf0..5e0ed8d 100644
--- a/README.md
+++ b/README.md
@@ -181,6 +181,8 @@ Oxidized is a network device configuration backup tool. It's a RANCID replacemen
* [EdgeSwitch](lib/oxidized/model/edgeswitch.rb)
* Watchguard
* [Fireware OS](lib/oxidized/model/firewareos.rb)
+ * Westell
+ * [Westell 8178G, Westell 8266G](lib/oxidized/model/weos.rb)
* Zhone
* [Zhone (OLT and MX)](lib/oxidized/model/zhoneolt.rb)
* Zyxel
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