summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2014-07-21 20:34:53 +0300
committerytti <saku@ytti.fi>2014-07-21 20:34:53 +0300
commit4c069558927d02886291c9bdfbcdb03c5765d1a2 (patch)
tree6eb62f13511a9b22ce06321190423f7a8c5d9e28
parent86ec2cbf9f86c5d7a3bca6c485f37a3e47ca76fb (diff)
parent981323ff57593567eed4032652d16ada43d69e77 (diff)
Merge pull request #27 from thakala/master
Added Brocade Fabric OS support
-rw-r--r--lib/oxidized/model/fabricos.rb29
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