diff options
author | Tomi Hakala <tomi.hakala@itvirtuoosit.fi> | 2014-07-21 20:24:56 +0300 |
---|---|---|
committer | Tomi Hakala <tomi.hakala@itvirtuoosit.fi> | 2014-07-21 20:25:53 +0300 |
commit | 981323ff57593567eed4032652d16ada43d69e77 (patch) | |
tree | 55046b10941b86a6f31a4b680cf48fdcf1284339 | |
parent | 59da6ea1a704f3003163d46d08d34c7c3f474d98 (diff) |
Added Brocade Fabric OS support
-rw-r--r-- | lib/oxidized/model/fabricos.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/oxidized/model/fabricos.rb b/lib/oxidized/model/fabricos.rb new file mode 100644 index 0000000..4854541 --- /dev/null +++ b/lib/oxidized/model/fabricos.rb @@ -0,0 +1,29 @@ +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 :all do |cfg| + cfg + end + + 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 + + cfg :ssh do + pre_logout 'exit' + end + +end |