f5-ansible
f5-ansible copied to clipboard
add oneconnect status reuse to bigip_profile_http
Is your feature request related to a problem? Please describe.
oneconnect only reuse connections when tmm.http.oc.droponerror is true (default) and server response code is 200 or 206. In situations where response code is different the oneconnect profile create more connections and is actually worse.
Describe the solution you'd like
in bigip_profile_http module, an extra parameter with the list of response codes matching the gui "oneconnect status reuse" parameter. Default to 200 and 206
Describe alternatives you've considered
adding an irule for this use case
Additional context
Hi @freedge,
Thanks for the feedback.
You can modify the http profile using the ansible bigip_command module like the following example:
- hosts: all
collections:
- f5networks.f5_modules
connection: local
vars:
provider:
password: mypassword
server: X.X.X.X
user: admin
validate_certs: no
server_port: 443
tasks:
- name: http profile oneconnect
bigip_command:
provider: "{{ provider }}"
commands:
- modify ltm profile http http-test oneconnect-status-reuse "200 206 208"
delegate_to: localhost