From 981323ff57593567eed4032652d16ada43d69e77 Mon Sep 17 00:00:00 2001 From: Tomi Hakala Date: Mon, 21 Jul 2014 20:24:56 +0300 Subject: Added Brocade Fabric OS support --- lib/oxidized/model/fabricos.rb | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/oxidized/model/fabricos.rb (limited to 'lib/oxidized') 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 -- cgit v1.2.1