Skip to content

Auto updated assets for ansible collection 31.1.2 #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 31.1.2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 322 additions & 0 deletions docs/avi_upgradeprofile.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,322 @@
.. vmware.alb.avi_upgradeprofile:


**********************************************
vmware.alb.avi_upgradeprofile
**********************************************

**Module for setup of UpgradeProfile Avi RESTful Object**


.. contents::
:local:
:depth: 1


Synopsis
--------
- This module is used to configure UpgradeProfile object.
- More examples at (https://github.com/avinetworks/devops).


Parameters
----------

.. raw:: html

<table border=0 cellpadding=0 class="documentation-table">
<tr>
<th colspan="2">Parameter</th>
<th>Choices/<font color="blue">Defaults</font></th>
<th width="100%">Comments</th>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>state</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0">
<li>absent</li>
<li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
</ul>
</td>
<td>
<div style="font-size: small">
- The state that should be applied on the entity.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>avi_api_update_method</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0">
<li><div style="color: blue"><b>put</b>&nbsp;&larr;</div></li>
<li>patch</li>
</ul>
</td>
<td>
<div style="font-size: small">
- Default method for object update is HTTP PUT.
</div>
<div style="font-size: small">
- Setting to patch will override that behavior to use HTTP PATCH.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>avi_api_patch_op</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td>
<ul style="margin: 0; padding: 0">
<li><div style="color: blue"><b>add</b>&nbsp;&larr;</div></li>
<li>replace</li>
<li>delete</li>
<li>remove</li>
</ul>
</td>
<td>
<div style="font-size: small">
- Patch operation to use when using avi_api_update_method as patch.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>avi_patch_path</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td></td>
<td>
<div style="font-size: small">
- Patch path to use when using avi_api_update_method as patch.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>avi_patch_value</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td></td>
<td>
<div style="font-size: small">
- Patch value to use when using avi_api_update_method as patch.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>controller</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dict</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- List of controller upgrade related configurable parameters.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>dry_run</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dict</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- List of dryrun related configurable parameters.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>image</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dict</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- List of image related configurable parameters.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>pre_checks</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dict</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- List of upgrade pre-checks related configurable parameters.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>service_engine</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">dict</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- List of service engine upgrade related configurable parameters.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>url</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- Avi controller URL of the object.
</div>
</td>
</tr>
<tr>
<td colspan="2">
<div class="ansibleOptionAnchor" id="parameter-"></div>
<b>uuid</b>
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">str</span>
</div>
</td>
<td>
</td>
<td>
<div style="font-size: small">
- Uuid identifier for the upgradeprofile object.
</div>
<div style="font-size: small">
- Field introduced in 31.1.1.
</div>
<div style="font-size: small">
- Allowed with any value in enterprise, enterprise with cloud services edition.
</div>
</td>
</tr>
</table>
<br/>


Examples
--------

.. code-block:: yaml

- hosts: localhost
connection: local
collections:
- vmware.alb
vars:
avi_credentials:
username: "avi_user"
password: "avi_password"
controller: "192.168.138.18"
api_version: "21.1.1"
tasks:
- name: Example to create UpgradeProfile object
avi_upgradeprofile:
avi_credentials: "{{ avi_credentials }}"
state: present
name: sample_upgradeprofile


Authors
~~~~~~~
- Gaurav Rastogi ([email protected])
- Sandeep Bandi ([email protected])
- Amol Shinde ([email protected])



2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ tags:
- load
- balancer
- sdk
version: 31.1.1
version: 31.1.2
19 changes: 6 additions & 13 deletions plugins/module_utils/avi_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ class ApiResponse(Response):
routines
1. obj: returns dictionary of Avi Object
"""

def __init__(self, rsp):
super(ApiResponse, self).__init__()
for k, v in list(rsp.__dict__.items()):
Expand Down Expand Up @@ -298,11 +297,9 @@ def __init__(self, controller_ip=None, username=None, password=None,

# Check if the IP address is IPv6
if is_ipv6:
self.prefix = '{}://[{}]'.format(protocol,
self.avi_credentials.controller)
self.prefix = '{}://[{}]'.format(protocol, self.avi_credentials.controller)
else:
self.prefix = '{}://{}'.format(protocol,
self.avi_credentials.controller)
self.prefix = '{}://{}'.format(protocol, self.avi_credentials.controller)

# Include the port in the prefix if specified
if port:
Expand All @@ -329,10 +326,8 @@ def __init__(self, controller_ip=None, username=None, password=None,
elif self.avi_credentials.csp_token:
if self.avi_credentials.csp_host:
if self.avi_credentials.csp_host.startswith('https'):
self.avi_credentials.csp_host = self.avi_credentials.csp_host.replace(
'https://', '')
self.csp_prefix = 'https://{x}/csp/gateway'.format(
x=self.avi_credentials.csp_host)
self.avi_credentials.csp_host = self.avi_credentials.csp_host.replace('https://', '')
self.csp_prefix = 'https://{x}/csp/gateway'.format(x=self.avi_credentials.csp_host)
self.generate_access_token()
else:
raise APIError("CSP host is not provided for csp login.")
Expand Down Expand Up @@ -696,8 +691,7 @@ def _api(self, api_name, path, tenant, tenant_uuid, data=None,
if connection_error or resp.status_code in (401, 419):
if 'multipart/form-data' in api_hdrs['Content-Type']:
if connection_error:
raise AviMultipartUploadError(
"Connection failed or aborted")
raise AviMultipartUploadError("Connection failed or aborted")
else:
raise AviMultipartUploadError('Received error,: %d Error '
'Msg %s' % (resp.status_code,
Expand Down Expand Up @@ -1151,7 +1145,6 @@ def is_ipv6_address(self, controller_ip):
ip = ipaddress.ip_address(controller_ip)
return ip.version == self.IPV6
except ValueError as ve:
logger.warning(
'Invalid Controller IP6 Address: %s - %s', controller_ip, ve)
logger.warning('Invalid Controller IP6 Address: %s - %s', controller_ip, ve)
return False
# End of file
Loading
Loading