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
Constants included from Oxidized::Model::Macros
Oxidized::Model::Macros::VERBS
Instance Attribute Summary
Attributes inherited from Oxidized::Model
Attributes included from Oxidized::Model::DSLCommands
Instance Method Summary collapse
Methods inherited from Oxidized::Model
#cfg, #cmd, #comment, #expect, #expects, #get, inherited, #interpolate_string, #metadata, #output, #prompt, #screenscrape, #send, #significant_changes, #xmlcomment
Methods included from Oxidized::Model::DSLSetup
#cfg, #cfgs, #comment, #expect, #expects, #input_sequence, #inputs, #metadata, #prompt
Methods included from Oxidized::Model::DSLCommands
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 |