summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/weos.rb
blob: 1b20286ca92726c4db6613b145f885fff9e18e24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class WEOS < Oxidized::Model

  #Westell WEOS, works with Westell 8178G, Westell 8266G

  prompt /^(\s[\w.@-]+[#>]\s?)$/

  cmd :all do |cfg|
    cfg.each_line.to_a[1..-2].join
  end

  cmd 'show running-config' do |cfg|
    cfg
  end

  cfg :telnet do
    username /login:/
    password /assword:/
    post_login 'cli more disable'
    pre_logout 'logout'
  end

end