blob: 8ad32d98773ba063436d43b0fcb7c88f16ddb00d (
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 unless vars :ssh_no_exec # don't run shell, run each command in exec channel
end
end
|