summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/axos.rb
blob: 42f9ab491b808ab86c46eb46d3257cad88e8c205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AxOS < Oxidized::Model
  prompt /(\x1b\[\?7h)?([\w.@()-]+[#]\s?)$/
  comment '! '

  cmd 'show running-config | nomore' do |cfg|
    cfg.cut_head
  end

  cmd :all do |cfg|
    cfg.cut_tail
  end

  cfg :ssh do
    pre_logout 'exit'
  end
end