summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/corianttmos.rb
diff options
context:
space:
mode:
authorEverton Marques <everton.marques@gmail.com>2016-06-21 12:36:20 -0300
committerEverton Marques <everton.marques@gmail.com>2016-06-21 12:36:20 -0300
commit54659e546595c71a4f7bdec7c3a317572b3f82a1 (patch)
treebcb1b5be73c2185fc52c58862c9872dfc865a341 /lib/oxidized/model/corianttmos.rb
parentde6633a59479567d3696593c1c72a630eff54a57 (diff)
Rename coriant8800 to corianttmos.
Diffstat (limited to 'lib/oxidized/model/corianttmos.rb')
-rw-r--r--lib/oxidized/model/corianttmos.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/oxidized/model/corianttmos.rb b/lib/oxidized/model/corianttmos.rb
new file mode 100644
index 0000000..e54b90b
--- /dev/null
+++ b/lib/oxidized/model/corianttmos.rb
@@ -0,0 +1,25 @@
+class Coriant8800 < Oxidized::Model
+
+ comment '# '
+
+ prompt /^[^\s#]+#\s$/
+
+ cmd 'show node extensive' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show run' do |cfg|
+ cfg
+ end
+
+ cfg :telnet do
+ username /^Login:\s$/
+ password /^Password:\s$/
+ end
+
+ cfg :telnet, :ssh do
+ pre_logout 'exit'
+ post_login 'enable config terminal length 0'
+ end
+
+end