Chapter 09/circuit-oneops-1-master/components/cookbooks/f5-bigip/libraries/provider_ltm_virtual_server.rb
#
# Remove all of the virtual server rules
#
Remove all of the virtual server rules
Remove all of the virtual server rules
def remove_all_rules
        converge_by("Removing all rules on #{new_resource}") do
          Chef::Log.info("Removing all rules on #{new_resource}")
          load_balancer.client['LocalLB.VirtualServer']
                       .remove_all_rules [new_resource.vs_name]
          current_resource.rules([])
          new_resource.updated_by_last_action(true)
        end
      end
def remove_all_rules converge_by ( "Removing all rules on #{new_resource}" ) do Chef :: Log . info ( "Removing all rules on #{new_resource}" ) load_balancer . client [ 'LocalLB.VirtualServer' ] . remove_all_rules [ new_resource . vs_name ] current_resource . rules ( [ ] ) new_resource . updated_by_last_action ( true ) end end
Remove all of the virtual server rules
Remove all of the virtual server rules