summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/isam.rb
blob: 17095008654348938e355d26645a9df00362dd5d (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
35
class ISAM < Oxidized::Model
  #Alcatel ISAM 7302/7330 FTTN
  
  prompt /^([\w.:@-]+>#\s)$/
  comment '# '

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  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