summaryrefslogtreecommitdiff
path: root/lib/oxidized/model
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-03-01 23:46:36 +0200
committerytti <saku@ytti.fi>2016-03-01 23:46:36 +0200
commitea418efa446c845fd3459510d114f86a59cfa8d7 (patch)
tree44d0128154032d163b2831028620d2a2695118f7 /lib/oxidized/model
parent41afe0081cca6922b1d344762b9ccbbfe2f60881 (diff)
parent3d684d5dbc3b8f823e577204c9d722f26ac81e3e (diff)
Merge pull request #353 from danilopopeye/add-netscaler-support
add citrix netscaler support
Diffstat (limited to 'lib/oxidized/model')
-rw-r--r--lib/oxidized/model/netscaler.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/oxidized/model/netscaler.rb b/lib/oxidized/model/netscaler.rb
new file mode 100644
index 0000000..9ca66b6
--- /dev/null
+++ b/lib/oxidized/model/netscaler.rb
@@ -0,0 +1,24 @@
+class NetScaler < Oxidized::Model
+
+ prompt /^\>\s*$/
+ comment '# '
+
+ cmd :all do |cfg|
+ cfg.each_line.to_a[1..-3].join
+ end
+
+ cmd 'show version' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show hardware' do |cfg|
+ comment cfg
+ end
+
+ cmd 'show ns ns.conf'
+
+ cfg :ssh do
+ pre_logout 'exit'
+ end
+
+end