From cb9f02548bbef0bdeb28a595031b700972bc7d1c Mon Sep 17 00:00:00 2001 From: Jeff Groom Date: Mon, 23 Nov 2015 18:12:14 +1300 Subject: added support for Ciena SOAS 6.x device type --- lib/oxidized/model/saos.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lib/oxidized/model/saos.rb (limited to 'lib/oxidized/model') 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 -- cgit v1.2.1