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

  # Brocade Fabric OS model #
  ## FIXME: Only ssh exec mode support, no telnet, no ssh screenscraping

  prompt /^([\w]+:+[\w]+[>]\s)$/
  comment  '# '

  cmd 'chassisShow' do |cfg|
    comment cfg
  end

  cmd 'configShow -all' do |cfg|
    cfg
  end

  cfg :ssh do
    exec true  # don't run shell, run each command in exec channel
  end

end