Class: NetScaler
- Inherits:
-
Oxidized::Model
- Object
- Oxidized::Model
- NetScaler
- Defined in:
- lib/oxidized/model/netscaler.rb
Constant Summary
Constants inherited from Oxidized::Model
Oxidized::Model::METADATA_DEFAULT
Instance Attribute Summary
Attributes inherited from Oxidized::Model
Instance Method Summary collapse
Methods inherited from Oxidized::Model
cfg, #cfg, cfgs, clean, cmd, #cmd, cmds, comment, #comment, #expect, expect, expects, #expects, #get, inherited, #interpolate_string, metadata, #metadata, #output, post, pre, prompt, #prompt, #screenscrape, #send, #xmlcomment
Methods included from Oxidized::Config::Vars
Instance Method Details
#multiple_partition ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/oxidized/model/netscaler.rb', line 48 def multiple_partition # Multiple partition mode cmd 'show partition' do |cfg| allcfg = "" partitions = [["default"]] + cfg.scan(/Name: (\S+)$/) partitions.each do |part| allcfg = allcfg + "\n\n####################### [ partition " + part.join(" ") + " ] #######################\n\n" cmd "switch ns partition " + part.join(" ") + "; show ns ns.conf; switch ns partition default" do |cfgpartition| allcfg += cfgpartition end end allcfg end end |
#single_partition ⇒ Object
41 42 43 44 45 46 |
# File 'lib/oxidized/model/netscaler.rb', line 41 def single_partition # Single partition mode cmd 'show ns ns.conf' do |cfg| cfg end end |