Skip to content
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

Ansible partner changes for end of May #163

Merged
merged 6 commits into from
Apr 10, 2024
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@ on:
- v[0-9]+.[0-9]+.[0-9]+
branches:
- main

workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: configure git
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@bots.github.com"
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.7"
python-version: "3.11"
- name: Install dependencies
run: make doc-setup
- name: Build docs
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/sanity_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,40 @@ on:
pull_request:
schedule:
- cron: '0 6 * * *'
workflow_dispatch:
env:
NAMESPACE: cisco
COLLECTION_NAME: dnac
jobs:
# https://docs.ansible.com/ansible/latest/reference_appendices/release_and_maintenance.html#ansible-core-support-matrix
# 2.14 supports Python 3.9-3.11
# 2.15 supports Python 3.9-3.11
# 2.16 supports Python 3.10-3.12
# https://docs.ansible.com/ansible/devel/roadmap/ROADMAP_2_17.html
# milestone is 2.17 until after 2.17 branches from devel
# devel is 2.17 until 2024-04-01
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
strategy:
matrix:
ansible:
- stable-2.14
- stable-2.15
- devel
runs-on: ubuntu-20.04
- stable-2.16
- stable-2.17
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: cisco-en-programmability/dnacenter-ansible
- name: Create directory
run: mkdir -p ./ansible_collections/${{env.NAMESPACE}}
- name: Move repository
run: mv ./cisco-en-programmability/dnacenter-ansible ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.10'
python-version: '3.11'
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/sanity_tests_devel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI Devel
on:
workflow_dispatch:
env:
NAMESPACE: cisco
COLLECTION_NAME: dnac
jobs:
sanity:
name: Sanity (Ⓐ${{ matrix.ansible }})
strategy:
matrix:
ansible:
- devel
runs-on: ubuntu-22.04
steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: cisco-en-programmability/dnacenter-ansible
- name: Create directory
run: mkdir -p ./ansible_collections/${{env.NAMESPACE}}
- name: Move repository
run: mv ./cisco-en-programmability/dnacenter-ansible ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
- name: Run sanity tests
run: ansible-test sanity --docker -v --color
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ The following table shows the supported versions.

| Cisco DNA Center version | Ansible "cisco.dnac" version | Python "dnacentersdk" version |
|--------------------------|------------------------------|-------------------------------|
| 2.1.1 | 3.0.0 | 2.2.5 |
| 2.2.2.3 | 3.3.1 | 2.3.3 |
| 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.0 | 2.6.0 |
| 2.1.1 | 3.0.0 | 2.2.5 |
| 2.2.2.3 | 3.3.1 | 2.3.3 |
| 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.0 | ^2.6.0 |

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

Expand All @@ -44,9 +44,9 @@ ansible-galaxy collection install cisco.dnac:3.3.1
```

## Requirements
- Ansible >= 2.9
- [Python DNA Center SDK](https://github.com/cisco-en-programmability/dnacentersdk) v2.4.7 or newer
- Python >= 3.6, as the DNA Center SDK doesn't support Python version 2.x
- Ansible >= 2.15
- [Python DNA Center SDK](https://github.com/cisco-en-programmability/dnacentersdk) v2.6.0 or newer
- Python >= 3.9, as the DNA Center SDK doesn't support Python version 2.x

## Install
Ansible must be installed ([Install guide](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html))
Expand Down
2 changes: 1 addition & 1 deletion meta/runtime.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
requires_ansible: '>=2.14.0'
requires_ansible: '>=2.15.0'
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
- Task_id path parameter. Task id information of ap config.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Wireless GetAccessPointConfigurationTaskResult
description: Complete reference of the GetAccessPointConfigurationTaskResult API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_default_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyDefault
description: Complete reference of the GetApplicationPolicyDefault API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
- PolicyScope query parameter. Policy scope name.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicy
description: Complete reference of the GetApplicationPolicy API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_intent_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@
type: dict
type: list
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy ApplicationPolicyIntent
description: Complete reference of the ApplicationPolicyIntent API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_queuing_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplicationPolicyQueuingProfile
description: Complete reference of the CreateApplicationPolicyQueuingProfile API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_queuing_profile_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyQueuingProfileCount
description: Complete reference of the GetApplicationPolicyQueuingProfileCount API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/app_policy_queuing_profile_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
- Name query parameter. Queuing profile name.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationPolicyQueuingProfile
description: Complete reference of the GetApplicationPolicyQueuingProfile API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/application_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
type: str
type: list
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplicationSet
description: Complete reference of the CreateApplicationSet API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/application_sets_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSetsCount
description: Complete reference of the GetApplicationSetsCount API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/application_sets_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
- Name query parameter.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationSets
description: Complete reference of the GetApplicationSets API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@
type: list
type: list
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy CreateApplication
description: Complete reference of the CreateApplication API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/applications_count_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
description: Additional headers.
type: dict
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplicationsCount
description: Complete reference of the GetApplicationsCount API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/applications_health_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
- ApplicationName query parameter. The name of the application to get information on.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Applications Applications
description: Complete reference of the Applications API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/applications_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
- Name query parameter. Application's name.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Application Policy GetApplications
description: Complete reference of the GetApplications API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/assign_device_to_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
description: SiteId path parameter. Site id to which site the device to assign.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for AssignDevicesToSite
description: Complete reference of the AssignDevicesToSite API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/associate_site_to_network_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
description: SiteId path parameter. Site Id to be associated.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Site Design Associate
description: Complete reference of the Associate API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/authentication_import_certificate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
description: PkPassword query parameter. Private Key Passsword.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Authentication Management ImportCertificate
description: Complete reference of the ImportCertificate API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/authentication_import_certificate_p12.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
description: PkPassword query parameter. Private Key Passsword.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Authentication Management ImportCertificateP12
description: Complete reference of the ImportCertificateP12 API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/authentication_policy_servers_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
- Role query parameter. Authentication and Policy Server Role (Example primary, secondary).
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for System Settings GetAuthenticationAndPolicyServers
description: Complete reference of the GetAuthenticationAndPolicyServers API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/buildings_planned_access_points_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
- Radios query parameter. Inlcude planned radio details.
type: bool
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Devices GetPlannedAccessPointsForBuilding
description: Complete reference of the GetPlannedAccessPointsForBuilding API.
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/business_sda_hostonboarding_ssid_ippool.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
description: VLAN Name.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Fabric Wireless AddSSIDToIPPoolMapping
description: Complete reference of the AddSSIDToIPPoolMapping API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
- SiteNameHierarchy query parameter. Site Name Heirarchy.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for Fabric Wireless GetSSIDToIPPoolMapping
description: Complete reference of the GetSSIDToIPPoolMapping API.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
- SiteNameHierarchy query parameter. Complete fabric siteNameHierarchy Path.
type: str
requirements:
- dnacentersdk >= 2.5.5
- python >= 3.5
- dnacentersdk >= 2.6.0
- python >= 3.9
seealso:
- name: Cisco DNA Center documentation for GetVirtualNetworkSummary
description: Complete reference of the GetVirtualNetworkSummary API.
Expand Down
Loading