Skip to content

Commit

Permalink
Merge pull request #171 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
bvargasre authored Jun 3, 2024
2 parents b164d67 + 7137347 commit 588d22d
Show file tree
Hide file tree
Showing 445 changed files with 682 additions and 442 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The following table shows the supported versions.
| 2.2.3.3 | 6.4.0 | 2.4.11 |
| 2.3.3.0 | 6.6.4 | 2.5.5 |
| 2.3.5.3 | 6.13.3 | 2.6.11 |
| 2.3.7.6 | ^6.14.0 | ^2.7.1 |
| 2.3.7.6 | ^6.15.0 | ^2.7.1 |

If your Ansible collection is older please consider updating it first.

Expand Down
6 changes: 6 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -909,3 +909,9 @@ releases:
- network_device_user_defined_field_delete - new module
- users_external_authentication - new module
- users_external_servers_aaa_attribute - new module
6.15.0:
release_date: "2024-06-03"
changes:
release_summary: Fix module name.
minor_changes:
- Fix module name from network_device_config__info to configuration_archive_details_info.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: cisco
name: dnac
version: 6.14.0
version: 6.15.0
readme: README.md
authors:
- Rafael Campos <rcampos@altus.cr>
Expand Down
99 changes: 99 additions & 0 deletions plugins/action/configuration_archive_details_info.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# Copyright (c) 2021, Cisco Systems
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)

from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from ansible.plugins.action import ActionBase
try:
from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import (
AnsibleArgSpecValidator,
)
except ImportError:
ANSIBLE_UTILS_IS_INSTALLED = False
else:
ANSIBLE_UTILS_IS_INSTALLED = True
from ansible.errors import AnsibleActionFail
from ansible_collections.cisco.dnac.plugins.plugin_utils.dnac import (
DNACSDK,
dnac_argument_spec,
)

# Get common arguments specification
argument_spec = dnac_argument_spec()
# Add arguments specific for this module
argument_spec.update(dict(
deviceId=dict(type="str"),
fileType=dict(type="str"),
createdTime=dict(type="str"),
createdBy=dict(type="str"),
offset=dict(type="float"),
limit=dict(type="float"),
headers=dict(type="dict"),
))

required_if = []
required_one_of = []
mutually_exclusive = []
required_together = []


class ActionModule(ActionBase):
def __init__(self, *args, **kwargs):
if not ANSIBLE_UTILS_IS_INSTALLED:
raise AnsibleActionFail("ansible.utils is not installed. Execute 'ansible-galaxy collection install ansible.utils'")
super(ActionModule, self).__init__(*args, **kwargs)
self._supports_async = False
self._supports_check_mode = True
self._result = None

# Checks the supplied parameters against the argument spec for this module
def _check_argspec(self):
aav = AnsibleArgSpecValidator(
data=self._task.args,
schema=dict(argument_spec=argument_spec),
schema_format="argspec",
schema_conditionals=dict(
required_if=required_if,
required_one_of=required_one_of,
mutually_exclusive=mutually_exclusive,
required_together=required_together,
),
name=self._task.action,
)
valid, errors, self._task.args = aav.validate()
if not valid:
raise AnsibleActionFail(errors)

def get_object(self, params):
new_object = dict(
device_id=params.get("deviceId"),
file_type=params.get("fileType"),
created_time=params.get("createdTime"),
created_by=params.get("createdBy"),
offset=params.get("offset"),
limit=params.get("limit"),
headers=params.get("headers"),
)
return new_object

def run(self, tmp=None, task_vars=None):
self._task.diff = False
self._result = super(ActionModule, self).run(tmp, task_vars)
self._result["changed"] = False
self._check_argspec()

self._result.update(dict(dnac_response={}))

dnac = DNACSDK(params=self._task.args)

response = dnac.exec(
family="configuration_archive",
function='get_configuration_archive_details',
params=self.get_object(self._task.args),
)
self._result.update(dict(dnac_response=response))
self._result.update(dnac.exit_json())
return self._result
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- Task_id path parameter. Task id information of ap config.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Wireless GetAccessPointConfigurationTaskResult
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_default_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyDefault
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- PolicyScope query parameter. Policy scope name.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicy
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_intent_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
type: dict
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy ApplicationPolicyIntent
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_queuing_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplicationPolicyQueuingProfile
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_queuing_profile_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyQueuingProfileCount
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/app_policy_queuing_profile_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- Name query parameter. Queuing profile name.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyQueuingProfile
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/application_policy_application_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplicationSets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- ScalableGroupType query parameter. Scalable group type to retrieve, valid value APPLICATION_GROUP.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSetCount
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/application_policy_application_set_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
results, max value 500.
type: float
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSets2
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/application_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplicationSet
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/application_sets_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSetsCount
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/application_sets_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- Name query parameter.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSets
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
type: list
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplication
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationsCount
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_count_v2_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
- ScalableGroupType query parameter. Scalable group type to retrieve, valid value APPLICATION.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationCount
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_health_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
- ApplicationName query parameter. The name of the application to get information on.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Applications Applications
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- Name query parameter. Application's name.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplications2
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplications
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/applications_v2_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
results, max value 500.
type: float
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplications
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/assign_device_to_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
description: SiteId path parameter. Site Id where device(s) needs to be assigned.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Sites AssignDevicesToSite
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/associate_site_to_network_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
description: SiteId path parameter. Site Id to be associated.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Site Design Associate
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/auth_token_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
author: Rafael Campos (@racampos)
options: {}
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Authentication AuthenticationAPI
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/authentication_import_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
description: PkPassword query parameter. Private Key Passsword.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Authentication Management ImportCertificate
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/authentication_import_certificate_p12.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
description: PkPassword query parameter. Private Key Passsword.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Authentication Management ImportCertificateP12
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/authentication_policy_servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
description: Value true to use DNAC certificate for Pxgrid. Default value is false.
type: bool
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for System Settings AddAuthenticationAndPolicyServerAccessConfiguration
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/authentication_policy_servers_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- Role query parameter. Authentication and Policy Server Role (Example primary, secondary).
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for System Settings GetAuthenticationAndPolicyServers
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/buildings_planned_access_points_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
- Radios query parameter. Inlcude planned radio details.
type: bool
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Devices GetPlannedAccessPointsForBuilding
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/business_sda_hostonboarding_ssid_ippool.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
description: VLAN Name.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Fabric Wireless AddSSIDToIPPoolMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- SiteNameHierarchy query parameter. Site Name Heirarchy.
type: str
requirements:
- dnacentersdk >= 2.4.9
- dnacentersdk >= 2.7.1
- python >= 3.5
seealso:
- name: Cisco DNA Center documentation for Fabric Wireless GetSSIDToIPPoolMapping
Expand Down
Loading

0 comments on commit 588d22d

Please sign in to comment.