summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorTomi Hakala <tomi.hakala@itvirtuoosit.fi>2014-07-21 20:24:56 +0300
committerTomi Hakala <tomi.hakala@itvirtuoosit.fi>2014-07-21 20:25:53 +0300
commit981323ff57593567eed4032652d16ada43d69e77 (patch)
tree55046b10941b86a6f31a4b680cf48fdcf1284339 /lib/oxidized/model
parent59da6ea1a704f3003163d46d08d34c7c3f474d98 (diff)
Added Brocade Fabric OS support
Diffstat (limited to 'lib/oxidized/model')
-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