summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2016-06-20 16:09:13 -0300
committerEverton Marques <everton.marques@gmail.com>2016-06-20 16:09:13 -0300
commit0f4803f627d3fef797d34a8afc43555c54c28e69 (patch)
tree274b2fe43eaa4509a77cea1c4139f31f8dc149bc /lib
parentf4b98d972a6a17dc363c8b214b5d8aa162f5fa37 (diff)
Coriant8800 from https://www.coriant.com/products/8800.asp
Diffstat (limited to 'lib')
-rw-r--r--lib/oxidized/model/coriant8800.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/oxidized/model/coriant8800.rb b/lib/oxidized/model/coriant8800.rb
new file mode 100644
index 0000000..1c2bf07
--- /dev/null
+++ b/lib/oxidized/model/coriant8800.rb
@@ -0,0 +1,20 @@
+class Coriant8800 < Oxidized::Model
+
+ prompt /^[^\s#]+#\s/
+
+ cmd 'show node extensive' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show run' do |cfg|
+ cfg
+ end
+
+ cfg :telnet, :ssh do
+ username /^Login:\s$/
+ password /^Password:\s$/
+ pre_logout 'exit'
+ post_login 'enable config terminal length 0'
+ end
+
+end