Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/loader.rb
#
# Create icontrol binding for load balancer
#
# @param hostname [String] hostname of load balancer to create binding for
#
# @return [Hash] Hash of interfaces from F5::IControl
#
#
Create icontrol binding for load balancer
Create icontrol binding for load balancer
def create_icontrol(hostname)
      load_dependencies
      cloud_name = node[:workorder][:cloud][:ciName]
      if node[:workorder][:services].has_key?(:lb)
	      cloud_service = node[:workorder][:services][:lb][cloud_name][:ciAttributes]
      end
      F5::IControl.new(hostname,
                       cloud_service[:username],
                       cloud_service[:password],
                       interfaces).get_interfaces
    end
def create_icontrol ( hostname ) load_dependencies cloud_name = node [ :workorder ] [ :cloud ] [ :ciName ] if node [ :workorder ] [ :services ] . has_key? ( :lb ) cloud_service = node [ :workorder ] [ :services ] [ :lb ] [ cloud_name ] [ :ciAttributes ] end F5 :: IControl . new ( hostname , cloud_service [ :username ] , cloud_service [ :password ] , interfaces ) . get_interfaces end
Create icontrol binding for load balancer
Create icontrol binding for load balancer
Hash of interfaces from F5::IControl
Hash of interfaces from F5 :: IControl
Hash
hostname
hostname of load balancer to create binding for
hostname of load balancer to create binding for