summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/axos.rb
blob: 9c1a663f408245fa1c418c5c44ab7a5d645f83dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class AxOS < Oxidized::Model
  prompt /([\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