Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_virtual_server.rb
#
# Add the virtual server default persistence profile
#
Add the virtual server default persistence profile
Add the virtual server default persistence profile
def add_persistence_profile
        load_balancer.client['LocalLB.VirtualServer']
                     .add_persistence_profile [new_resource.vs_name],
                                              [default_persistence_profile_hash]
        current_resource.default_persistence_profile(new_resource.default_persistence_profile)
        new_resource.updated_by_last_action(true)
      end
def add_persistence_profile load_balancer . client [ 'LocalLB.VirtualServer' ] . add_persistence_profile [ new_resource . vs_name ] , [ default_persistence_profile_hash ] current_resource . default_persistence_profile ( new_resource . default_persistence_profile ) new_resource . updated_by_last_action ( true ) end
Add the virtual server default persistence profile
Add the virtual server default persistence profile