diff options
author | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-03-01 18:06:41 -0300 |
---|---|---|
committer | Danilo Sousa <dsgoncalves@uoldiveo.com> | 2016-03-01 18:06:41 -0300 |
commit | da582b537d1d316ae2d16c16dc09d41e0026d188 (patch) | |
tree | 3f13a6a0e1684cbd3ece1ba653618a08d33604c2 | |
parent | 41afe0081cca6922b1d344762b9ccbbfe2f60881 (diff) |
include support for Citrix NetScaler devices
-rw-r--r-- | lib/oxidized/model/netscaler.rb | 24 |
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 |