mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -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,25 @@ 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"]
|
||||
application_persistence_profile_ref:
|
||||
description:
|
||||
- The federated application persistence associated with gslbservice site persistence functionality.
|
||||
- It is a reference to an object of type applicationpersistenceprofile.
|
||||
- Field introduced in 17.2.1.
|
||||
version_added: "2.5"
|
||||
controller_health_status_enabled:
|
||||
description:
|
||||
- Gs member's overall health status is derived based on a combination of controller and datapath health-status inputs.
|
||||
|
@ -89,6 +107,14 @@ options:
|
|||
- This field indicates that this object is replicated across gslb federation.
|
||||
- Field introduced in 17.1.3.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as True.
|
||||
min_members:
|
||||
description:
|
||||
- The minimum number of members to distribute traffic to.
|
||||
- Allowed values are 1-65535.
|
||||
- Special values are 0 - 'disable'.
|
||||
- Field introduced in 17.2.4.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as 0.
|
||||
version_added: "2.5"
|
||||
name:
|
||||
description:
|
||||
- Name for the gslb service.
|
||||
|
@ -99,6 +125,19 @@ options:
|
|||
- Enter 0 to return all ip addresses.
|
||||
- Allowed values are 1-20.
|
||||
- Special values are 0- 'return all ip addresses'.
|
||||
pool_algorithm:
|
||||
description:
|
||||
- The load balancing algorithm will pick a gslb pool within the gslb service list of available pools.
|
||||
- Enum options - GSLB_SERVICE_ALGORITHM_PRIORITY, GSLB_SERVICE_ALGORITHM_GEO.
|
||||
- Field introduced in 17.2.3.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as GSLB_SERVICE_ALGORITHM_PRIORITY.
|
||||
version_added: "2.5"
|
||||
site_persistence_enabled:
|
||||
description:
|
||||
- Enable site-persistence for the gslbservice.
|
||||
- Field introduced in 17.2.1.
|
||||
- Default value when not specified in API or module is interpreted by Avi Controller as False.
|
||||
version_added: "2.5"
|
||||
tenant_ref:
|
||||
description:
|
||||
- It is a reference to an object of type tenant.
|
||||
|
@ -106,6 +145,7 @@ options:
|
|||
description:
|
||||
- Ttl value (in seconds) for records served for this gslb service by the dns service.
|
||||
- Allowed values are 1-86400.
|
||||
- Units(SEC).
|
||||
url:
|
||||
description:
|
||||
- Avi controller URL of the object.
|
||||
|
@ -158,6 +198,10 @@ 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']),
|
||||
application_persistence_profile_ref=dict(type='str',),
|
||||
controller_health_status_enabled=dict(type='bool',),
|
||||
created_by=dict(type='str',),
|
||||
description=dict(type='str',),
|
||||
|
@ -168,8 +212,11 @@ def main():
|
|||
health_monitor_refs=dict(type='list',),
|
||||
health_monitor_scope=dict(type='str',),
|
||||
is_federated=dict(type='bool',),
|
||||
min_members=dict(type='int',),
|
||||
name=dict(type='str', required=True),
|
||||
num_dns_ip=dict(type='int',),
|
||||
pool_algorithm=dict(type='str',),
|
||||
site_persistence_enabled=dict(type='bool',),
|
||||
tenant_ref=dict(type='str',),
|
||||
ttl=dict(type='int',),
|
||||
url=dict(type='str',),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue