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

  # Siklu EtherHaul #

  prompt /^[\w-]+>$/

  cmd 'copy startup-configuration display' do |cfg|
    cfg.each_line.to_a[2..2].join
  end

  cmd 'copy running-configuration display' do |cfg|
    cfg.each_line.to_a[3..-2].join
  end

  cfg :ssh do
    pre_logout 'exit'
  end

end