summaryrefslogtreecommitdiff
path: root/lib/oxidized/model/fabricos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/oxidized/model/fabricos.rb')
-rw-r--r--lib/oxidized/model/fabricos.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/oxidized/model/fabricos.rb b/lib/oxidized/model/fabricos.rb
new file mode 100644
index 0000000..7ab9fd5
--- /dev/null
+++ b/lib/oxidized/model/fabricos.rb
@@ -0,0 +1,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 # don't run shell, run each command in exec channel
+ end
+
+end