cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.
Mitra_Kelly_625
Historic F5 Account

Problem this snippet solves:

The WAPolicySwitcher class will connect to two BIG-IPs and allow for Web Accelerator application policies to be added and removed from a Web Accelerator. In our testing, we use this class to adjust how the web accelerator is dealing with traffic.

Important: This class must be called from within a Ruby program.

Configuration

The following files need to be changed:

  1. Edit the bigip-config.ylm and bigip2-config.ylm files to include the addresses and credentials for the two BIG-IPs.
  2. Edit the WebAccelerator.Applications.wsdl and WebAccelerator.Applications2.wsdl files to include the correct IP addresses for the two BIG-IPs. (4th to last line in each file)

How to use this snippet:

Methods:

deleteAppPolicy

Requires the name of the application to delete.

createPolicy

Takes the name for the application, the local policy name, the remote policy name, and a list of domain names to use for the application.

makePolicySymmetric

Takes the name for the application, a single policy name, and a list of one or more host domain names to use for the application. Calls createPolicy. Will use the specified policy for both the local and remote policies.

makePolicyAsymmetric

Takes the name for the application, a single policy name, and a list of one or more host domain names to use for the application. Calls createPolicy. Will use the specified policy for the local policy and “Symmetric Deployment” for the remote policy.

Code :

# missing file
Version history
Last update:
‎09-Mar-2015 13:52
Updated by:
Contributors