blob: 5a4e79e1b6ff699979ee2dda497cc1157b9acc10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
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.gsub! /^! Created: [^\n]*\n/, ''
cfg.gsub! /^! On terminal: [^\n]*\n/, ''
cfg
end
cfg :telnet do
username /login:/
password /assword:/
end
cfg :telnet, :ssh do
post_login 'system shell set more off'
post_login 'system shell session set more off'
pre_logout 'exit'
end
end
|