summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/edgeswitch.rb
blob: c303fe23c4044fba5df6f9b5760b8c9a5a451dbc (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
class EdgeSwitch < Oxidized::Model

# Ubiquiti EdgeSwitch #

  comment '!'

  prompt /[(]\w*\s\w*[)][\s#>]*[\s#>]/

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

  cfg :telnet do
    username /Username:\s/
    passsword /^Password:\s/
  end

  cfg :telnet, :ssh do
    post_login 'enable'
    post_login 'terminal length 0'
    pre_logout 'exit'
    pre_logout 'exit'
  end

end