mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 08:54:01 -07:00
Updated Avi Modules with new features and documentation update. (#34206)
* Updated Avi Modules with following 1. Support to perform patch operation using the modules. The data update method is selected using avi_api_update_method=patch and patch operation is determined by avi_api_patch_op. The patch data is the normal params that are provided in the modules 2. Support for avi_credentials as single authentication dictionary for all API calls. This is preferred way as opposed to previously all credentials details would pollute the individual Ansible tasks. It also allows the module development to be enhanced without breaking compatibility for new authentication schemes like SAML etc. 3. Support for sharing api_context between the module invocations. This is a workaround to not do multiple logins to Avi Controller and be able to re-use single login across multiple REST API calls. 4. Documentation update for new parameters and existing ones with Units data. * Fixed the pylint and pep8 errors caused due to pycharm editor auto formatting
This commit is contained in:
parent
9b4a1ed475
commit
9e2ff3e4d5
57 changed files with 1522 additions and 238 deletions
|
@ -43,7 +43,19 @@ options:
|
|||
description:
|
||||
- The state that should be applied on the entity.
|
||||
default: present
|
||||
choices: ["absent","present"]
|
||||
choices: ["absent", "present"]
|
||||
avi_api_update_method:
|
||||
description:
|
||||
- Default method for object update is HTTP PUT.
|
||||
- Setting to patch will override that behavior to use HTTP PATCH.
|
||||
version_added: "2.5"
|
||||
default: put
|
||||
choices: ["put", "patch"]
|
||||
avi_api_patch_op:
|
||||
description:
|
||||
- Patch operation to use when using avi_api_update_method as patch.
|
||||
version_added: "2.5"
|
||||
choices: ["add", "replace", "delete"]
|
||||
apdex_response_threshold:
|
||||
description:
|
||||
- If a client receives an http response in less than the satisfactory latency threshold, the request is considered satisfied.
|
||||
|
@ -51,6 +63,7 @@ options:
|
|||
- Greater than this number and the client's request is considered frustrated.
|
||||
- Allowed values are 1-30000.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 500.
|
||||
- Units(MILLISECONDS).
|
||||
apdex_response_tolerated_factor:
|
||||
description:
|
||||
- Client tolerated response latency factor.
|
||||
|
@ -62,6 +75,7 @@ options:
|
|||
- Satisfactory client to avi round trip time(rtt).
|
||||
- Allowed values are 1-2000.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 250.
|
||||
- Units(MILLISECONDS).
|
||||
apdex_rtt_tolerated_factor:
|
||||
description:
|
||||
- Tolerated client to avi round trip time(rtt) factor.
|
||||
|
@ -76,6 +90,7 @@ options:
|
|||
- A pageload includes the time for dns lookup, download of all http objects, and page render time.
|
||||
- Allowed values are 1-30000.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 5000.
|
||||
- Units(MILLISECONDS).
|
||||
apdex_rum_tolerated_factor:
|
||||
description:
|
||||
- Virtual service threshold factor for tolerated page load time (plt) as multiple of apdex_rum_threshold.
|
||||
|
@ -88,6 +103,7 @@ options:
|
|||
- Greater than this number and the server response is considered frustrated.
|
||||
- Allowed values are 1-30000.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 400.
|
||||
- Units(MILLISECONDS).
|
||||
apdex_server_response_tolerated_factor:
|
||||
description:
|
||||
- Server tolerated response latency factor.
|
||||
|
@ -99,6 +115,7 @@ options:
|
|||
- Satisfactory client to avi round trip time(rtt).
|
||||
- Allowed values are 1-2000.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 125.
|
||||
- Units(MILLISECONDS).
|
||||
apdex_server_rtt_tolerated_factor:
|
||||
description:
|
||||
- Tolerated client to avi round trip time(rtt) factor.
|
||||
|
@ -118,41 +135,49 @@ options:
|
|||
- A connection between client and avi is considered lossy when more than this percentage of out of order packets are received.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 50.
|
||||
- Units(PERCENT).
|
||||
conn_lossy_timeo_rexmt_threshold:
|
||||
description:
|
||||
- A connection between client and avi is considered lossy when more than this percentage of packets are retransmitted due to timeout.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 20.
|
||||
- Units(PERCENT).
|
||||
conn_lossy_total_rexmt_threshold:
|
||||
description:
|
||||
- A connection between client and avi is considered lossy when more than this percentage of packets are retransmitted.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 50.
|
||||
- Units(PERCENT).
|
||||
conn_lossy_zero_win_size_event_threshold:
|
||||
description:
|
||||
- A client connection is considered lossy when percentage of times a packet could not be trasmitted due to tcp zero window is above this threshold.
|
||||
- Allowed values are 0-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 2.
|
||||
- Units(PERCENT).
|
||||
conn_server_lossy_ooo_threshold:
|
||||
description:
|
||||
- A connection between avi and server is considered lossy when more than this percentage of out of order packets are received.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 50.
|
||||
- Units(PERCENT).
|
||||
conn_server_lossy_timeo_rexmt_threshold:
|
||||
description:
|
||||
- A connection between avi and server is considered lossy when more than this percentage of packets are retransmitted due to timeout.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 20.
|
||||
- Units(PERCENT).
|
||||
conn_server_lossy_total_rexmt_threshold:
|
||||
description:
|
||||
- A connection between avi and server is considered lossy when more than this percentage of packets are retransmitted.
|
||||
- Allowed values are 1-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 50.
|
||||
- Units(PERCENT).
|
||||
conn_server_lossy_zero_win_size_event_threshold:
|
||||
description:
|
||||
- A server connection is considered lossy when percentage of times a packet could not be trasmitted due to tcp zero window is above this threshold.
|
||||
- Allowed values are 0-100.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 2.
|
||||
- Units(PERCENT).
|
||||
description:
|
||||
description:
|
||||
- User defined description for the object.
|
||||
|
@ -169,6 +194,12 @@ options:
|
|||
description:
|
||||
- Exclude client closed connection before an http request could be completed from being classified as an error.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as False.
|
||||
exclude_dns_policy_drop_as_significant:
|
||||
description:
|
||||
- Exclude dns policy drops from the list of errors.
|
||||
- Field introduced in 17.2.2.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as False.
|
||||
version_added: "2.5"
|
||||
exclude_gs_down_as_error:
|
||||
description:
|
||||
- Exclude queries to gslb services that are operationally down from the list of errors.
|
||||
|
@ -369,13 +400,12 @@ extends_documentation_fragment:
|
|||
- avi
|
||||
'''
|
||||
|
||||
|
||||
EXAMPLES = '''
|
||||
EXAMPLES = """
|
||||
- name: Create a custom Analytics profile object
|
||||
avi_analyticsprofile:
|
||||
controller: ''
|
||||
username: ''
|
||||
password: ''
|
||||
controller: '{{ controller }}'
|
||||
username: '{{ username }}'
|
||||
password: '{{ password }}'
|
||||
apdex_response_threshold: 500
|
||||
apdex_response_tolerated_factor: 4.0
|
||||
apdex_rtt_threshold: 250
|
||||
|
@ -429,7 +459,8 @@ EXAMPLES = '''
|
|||
hs_security_weak_signature_algo_penalty: 1.0
|
||||
name: jason-analytics-profile
|
||||
tenant_ref: Demo
|
||||
'''
|
||||
"""
|
||||
|
||||
RETURN = '''
|
||||
obj:
|
||||
description: AnalyticsProfile (api/analyticsprofile) object
|
||||
|
@ -449,6 +480,9 @@ def main():
|
|||
argument_specs = dict(
|
||||
state=dict(default='present',
|
||||
choices=['absent', 'present']),
|
||||
avi_api_update_method=dict(default='put',
|
||||
choices=['put', 'patch']),
|
||||
avi_api_patch_op=dict(choices=['add', 'replace', 'delete']),
|
||||
apdex_response_threshold=dict(type='int',),
|
||||
apdex_response_tolerated_factor=dict(type='float',),
|
||||
apdex_rtt_threshold=dict(type='int',),
|
||||
|
@ -473,6 +507,7 @@ def main():
|
|||
disable_se_analytics=dict(type='bool',),
|
||||
disable_server_analytics=dict(type='bool',),
|
||||
exclude_client_close_before_request_as_error=dict(type='bool',),
|
||||
exclude_dns_policy_drop_as_significant=dict(type='bool',),
|
||||
exclude_gs_down_as_error=dict(type='bool',),
|
||||
exclude_http_error_codes=dict(type='list',),
|
||||
exclude_invalid_dns_domain_as_error=dict(type='bool',),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue