blob: 511bb1638e0fdcf4a3cb3088921e49330aa92d22 (
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
29
30
31
32
33
34
|
class ISAM < Oxidized::Model
# Alcatel ISAM 7302/7330 FTTN
prompt /^([\w.:@-]+>#\s)$/
comment '# '
cmd :all do |cfg|
cfg.cut_both
end
cfg :telnet do
username /^login:\s*/
password /^password:\s*/
end
cfg :telnet, :ssh do
post_login 'environment prompt "%n># "'
post_login 'environment mode batch'
post_login 'environment inhibit-alarms print no-more'
pre_logout 'logout'
end
cmd 'show software-mngt oswp detail' do |cfg|
comment cfg
end
cmd 'show equipment slot detail' do |cfg|
comment cfg
end
cmd 'info configure flat' do |cfg|
cfg
end
end
|