class Bim::Action::VS
VS
class used by Bim::Subcommands::VS
Constants
- VS_PATH
- VS_URI
Public Class Methods
change_nf(name, nf_name)
click to toggle source
# File lib/bim/action/vs.rb, line 30 def change_nf(name, nf_name) j = { 'fwEnforcedPolicy' => nf_name }.to_json self_patch(name, VS_URI, j) end
change_pool(name, pool_name)
click to toggle source
# File lib/bim/action/vs.rb, line 35 def change_pool(name, pool_name) j = { 'pool' => pool_name }.to_json self_patch(name, VS_URI, j) end
detail(name)
click to toggle source
# File lib/bim/action/vs.rb, line 21 def detail(name) specify(VS_URI) { |d| d['name'] == name } end
ls()
click to toggle source
# File lib/bim/action/vs.rb, line 11 def ls map(VS_URI) do |item| r = { name: item['name'] } r['profiles'] = JSON.parse(map(URI(sub_localhost(item['profilesReference']['link']))) do |in_item| in_item['fullPath'] end) r end end
update_global_address(name, dnat_addr, port)
click to toggle source
# File lib/bim/action/vs.rb, line 25 def update_global_address(name, dnat_addr, port) j = { 'destination' => "#{dnat_addr}:#{port}" }.to_json self_patch(name, VS_URI, j) end