summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-02-07 16:37:02 +0200
committerSaku Ytti <saku@ytti.fi>2014-02-07 16:37:02 +0200
commit92fbaa712c99ae5b523be0ebbc46fca9cdddef4e (patch)
tree7e932962fa251dbf7c6d4f4e539abf035c8ad002 /lib/oxidized/model
parent028bada99a02f2bc9b5b4409f09715ca49858675 (diff)
Add AOS (ALU OmniSwitch) support
Specifically AOS 6, vxworks era, not linux era 7
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/aos.rb38
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/oxidized/model/aos.rb b/lib/oxidized/model/aos.rb
new file mode 100644
index 0000000..ec73b92
--- /dev/null
+++ b/lib/oxidized/model/aos.rb
@@ -0,0 +1,38 @@
+class AOS < Oxidized::Model
+
+ # Alcatel-Lucent Operating System
+ # used in OmniSwitch
+
+ comment '! '
+
+ cmd :all do |cfg|
+ cfg.each_line.to_a[1..-2].join
+ end
+
+ cmd 'show system' do |cfg|
+ cfg = cfg.each_line.find{|line|line.match 'Description'}
+ comment cfg.to_s.strip
+ end
+
+ cmd 'show chassis' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show hardware info' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show configuration snapshot' do |cfg|
+ cfg
+ end
+
+ cfg :telnet do
+ username /^login : /
+ password /^password : /
+ end
+
+ cfg :telnet, :ssh do
+ pre_logout 'exit'
+ end
+
+end