diff options
author | ytti <saku@ytti.fi> | 2015-11-23 12:22:16 +0200 |
---|---|---|
committer | ytti <saku@ytti.fi> | 2015-11-23 12:22:16 +0200 |
commit | 061fc57ba9bbb3dd9c11562a5f738595b0efe420 (patch) | |
tree | 9ac3be00a90b50ff12ded1c8718efff6473c47b9 /lib/oxidized | |
parent | ee9ab2ff19c63223da827d3107f3b1b3c3f44759 (diff) | |
parent | cb9f02548bbef0bdeb28a595031b700972bc7d1c (diff) |
Merge pull request #241 from jgroom33/master
added support for Ciena SOAS 6.x device type
Diffstat (limited to 'lib/oxidized')
-rw-r--r-- | lib/oxidized/model/saos.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/oxidized/model/saos.rb b/lib/oxidized/model/saos.rb new file mode 100644 index 0000000..cada35b --- /dev/null +++ b/lib/oxidized/model/saos.rb @@ -0,0 +1,24 @@ +class SAOS < Oxidized::Model + + # Ciena SAOS switch + # used for 6.x devices + + comment '! ' + + cmd :all do |cfg| + cfg.each_line.to_a[1..-2].join + end + + cmd 'configuration show' do |cfg| + cfg + end + + cfg :telnet do + username /login:/ + password /assword:/ + end + cfg :telnet do + post_login 'system shell session set more off' + pre_logout 'exit' + end +end
\ No newline at end of file |