summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/coriant8600.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-06-22 18:26:37 +0300
committerGitHub <noreply@github.com>2016-06-22 18:26:37 +0300
commitfd4833c64f18528cf5bbf44f46edef43e61fa2bc (patch)
treecc80f1aa097ac0552c97a9784e6abab4b961686e /lib/oxidized/model/coriant8600.rb
parent52f77e74df5d62fefda2623583d929bb33583a62 (diff)
parente91b4d212ad8ae712c9d16f4d1e619030f8d1691 (diff)
Merge pull request #475 from udhos/master
Add support for Coriant 8600 and Coriant 8800.
Diffstat (limited to 'lib/oxidized/model/coriant8600.rb')
-rw-r--r--lib/oxidized/model/coriant8600.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/oxidized/model/coriant8600.rb b/lib/oxidized/model/coriant8600.rb
new file mode 100644
index 0000000..a48ffa5
--- /dev/null
+++ b/lib/oxidized/model/coriant8600.rb
@@ -0,0 +1,30 @@
+class Coriant8600 < Oxidized::Model
+
+ comment '# '
+
+ prompt /^[^\s#>]+[#>]$/
+
+ cmd 'show hw-inventory' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show flash' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show run' do |cfg|
+ cfg
+ end
+
+ cfg :telnet do
+ username /^user name:$/
+ password /^password:$/
+ end
+
+ cfg :telnet, :ssh do
+ pre_logout 'exit'
+ post_login 'enable'
+ post_login 'terminal more off'
+ end
+
+end