Skip to content

Commit d42bcc4

Browse files
authored
Merge pull request #10 from cisco-en-programmability/develop
Develop
2 parents 09aa8f6 + 2fd15e7 commit d42bcc4

File tree

1,235 files changed

+14591
-14580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,235 files changed

+14591
-14580
lines changed

.github/workflows/sanity_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Python
3737
uses: actions/setup-python@v3
3838
with:
39-
python-version: '3.11'
39+
python-version: '3.12'
4040

4141
- name: Install ansible-base (${{ matrix.ansible }})
4242
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

Dockerfile.ansible-test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM quay.io/centos/centos:stream9
22

3-
RUN dnf install -y python3.11 python3.11-pip git gcc python3.11-devel && \
4-
alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
5-
pip3.11 install --upgrade pip
3+
RUN dnf install -y python3.12 python3.12-pip git gcc python3.12-devel && \
4+
alternatives --install /usr/bin/python python /usr/bin/python3.12 1 && \
5+
pip3.12 install --upgrade pip
66

77
RUN pip install git+https://github.com/ansible/ansible@devel
88

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following table shows the supported versions.
1616
|-------------------------------|----------------------------------------|------------------------------------|
1717
| 2.3.7.6 | 1.0.0 | 2.3.7.6.2 |
1818
| 2.3.7.9 | 2.1.4 | 2.3.7.9.5 |
19-
| 3.1.3.0 | ^2.2.0 | ^3.1.3.0.0 |
19+
| 3.1.3.0 | ^2.2.1 | ^3.1.3.0.0 |
2020

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

@@ -107,13 +107,13 @@ ansible-playbook -i hosts myplaybook.yml
107107
First, define a `credentials.yml` ([example](https://github.com/cisco-en-programmability/catalystcenter-ansible/blob/main/playbooks/credentials.template)) file where you specify your CATALYST Center credentials as Ansible variables:
108108
```
109109
---
110-
_host: <A.B.C.D>
111-
_api_port: 443 # optional, defaults to 443
112-
_username: <username>
113-
_password: <password>
114-
_version: 2.3.7.6 # optional, defaults to 2.3.7.6. See the Compatibility matrix
115-
_verify: False # optional, defaults to True
116-
_debug: False # optional, defaults to False
110+
host: <A.B.C.D>
111+
api_port: 443 # optional, defaults to 443
112+
username: <username>
113+
password: <password>
114+
version: 2.3.7.6 # optional, defaults to 2.3.7.6. See the Compatibility matrix
115+
verify: False # optional, defaults to True
116+
debug: False # optional, defaults to False
117117
```
118118

119119
Create a `hosts` ([example](https://github.com/cisco-en-programmability/catalystcenter-ansible/blob/main/playbooks/hosts)) file that uses `[catalystcenter_servers]` with your Cisco CATALYST Center Settings:
@@ -131,10 +131,10 @@ Then, create a playbook `myplaybook.yml` ([example](https://github.com/cisco-en-
131131
tasks:
132132
- name: Create tag with name "MyNewTag"
133133
cisco.catalystcenter.tag:
134-
_host: "{{_host}}"
135-
_username: "{{ _username }}"
136-
_password: "{{ _password }}"
137-
_verify: "{{ _verify }}"
134+
host: "{{ host }}"
135+
username: "{{ username }}"
136+
password: "{{ password }}"
137+
verify: "{{ verify }}"
138138
state: present
139139
description: My Tag
140140
name: MyNewTag

changelogs/changelog.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,15 @@ releases:
6767
release_summary: Update Modules
6868
minor_changes:
6969
- Collection is now compatible with Catalyst Center API 3.1.3.0.
70+
2.2.1:
71+
release_date: "2025-08-07"
72+
changes:
73+
release_summary: Complete migration to catc_ prefixed parameters
74+
minor_changes:
75+
- Migrated all connection and logging parameters to use catc_ prefix (catc_host, catc_username, catc_password, catc_verify, catc_api_port, catc_version, catc_debug, catc_log, catc_log_level, catc_log_append, catc_log_file_path)
76+
- Updated all module examples, playbooks, and documentation to use new parameter names
77+
- Updated credentials files and doc fragments with new parameter structure
78+
- Added timeout parameters catc_api_task_timeout and catc_task_poll_interval to core argument specifications
79+
- Maintained backward compatibility through comprehensive aliases for legacy parameter names
80+
- Standardized parameter naming across all workflow manager modules
81+
- Fixed element_spec definitions in all modules to use consistent catc_ prefixed parameters

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
namespace: cisco
33
name: catalystcenter
4-
version: 2.2.0
4+
version: 2.2.1
55
readme: README.md
66
authors:
77
- Rafael Campos <[email protected]>

playbooks/PnP.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
- "{{ CLUSTERFILE }}"
88
vars:
99
catalystcenter_login: &catalystcenter_login
10-
_host: "{{ _host }}"
11-
_username: "{{ _username }}"
12-
_password: "{{ _password }}"
13-
_verify: "{{ _verify }}"
14-
_api_port: "{{ _api_port }}"
15-
_version: "{{ _version }}"
16-
_debug: "{{ _debug }}"
17-
log_level: DEBUG
10+
catc_host: "{{ catc_host }}"
11+
catc_username: "{{ catc_username }}"
12+
catc_password: "{{ catc_password }}"
13+
catc_verify: "{{ catc_verify }}"
14+
catc_api_port: "{{ catc_api_port }}"
15+
catc_version: "{{ catc_version }}"
16+
catc_debug: "{{ catc_debug }}"
17+
catc_log_level: DEBUG
1818
tasks:
1919
- name: Import devices in bulk
2020
cisco.catalystcenter.pnp_intent:
2121
!!merge <<: *catalystcenter_login
22-
log: true
22+
catc_log: true
2323
state: merged
2424
config_verify: true
2525
config:
@@ -38,7 +38,7 @@
3838
- name: Add a new device and claim it
3939
cisco.catalystcenter.pnp_intent:
4040
!!merge <<: *catalystcenter_login
41-
log: true
41+
catc_log: true
4242
state: merged
4343
config:
4444
- site_name: Global/USA/San Francisco/BGL_18
@@ -51,7 +51,7 @@
5151
- name: Claim a pre-added switch, apply a template, and perform an image upgrade for a specific site
5252
cisco.catalystcenter.pnp_intent:
5353
!!merge <<: *catalystcenter_login
54-
log: true
54+
catc_log: true
5555
state: merged
5656
config:
5757
- site_name: Global/USA/San Francisco/BGL_18
@@ -69,7 +69,7 @@
6969
- name: Claim an existing Wireless Controller, apply a template, and upgrade its image for a specified site
7070
cisco.catalystcenter.pnp_intent:
7171
!!merge <<: *catalystcenter_login
72-
log: true
72+
catc_log: true
7373
state: merged
7474
config:
7575
- site_name: Global/USA/San Francisco/BGL_18
@@ -91,7 +91,7 @@
9191
- name: Remove multiple devices from the PnP dashboard safely (ignores non-existent devices)
9292
cisco.catalystcenter.pnp_intent:
9393
!!merge <<: *catalystcenter_login
94-
log: true
94+
catc_log: true
9595
state: deleted
9696
config_verify: true
9797
config:

playbooks/PnP_Workflow_Manager_Playbook.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
- "{{ CLUSTERFILE }}"
88
vars:
99
catalystcenter_login: &catalystcenter_login
10-
_host: "{{ _host }}"
11-
_username: "{{ _username }}"
12-
_password: "{{ _password }}"
13-
_verify: "{{ _verify }}"
14-
_api_port: "{{ _api_port }}"
15-
_version: "{{ _version }}"
16-
_debug: "{{ _debug }}"
17-
log_level: DEBUG
10+
catc_host: "{{ catc_host }}"
11+
catc_username: "{{ catc_username }}"
12+
catc_password: "{{ catc_password }}"
13+
catc_verify: "{{ catc_verify }}"
14+
catc_api_port: "{{ catc_api_port }}"
15+
catc_version: "{{ catc_version }}"
16+
catc_debug: "{{ catc_debug }}"
17+
catc_log_level: DEBUG
1818
tasks:
1919
- name: Import devices in bulk
2020
cisco.catalystcenter.pnp_workflow_manager:
2121
!!merge <<: *catalystcenter_login
22-
log: true
22+
catc_log: true
2323
state: merged
2424
config_verify: true
2525
config:
@@ -38,7 +38,7 @@
3838
- name: Add a new device and claim it
3939
cisco.catalystcenter.pnp_workflow_manager:
4040
!!merge <<: *catalystcenter_login
41-
log: true
41+
catc_log: true
4242
state: merged
4343
config:
4444
- site_name: Global/USA/San Francisco/BGL_18
@@ -51,7 +51,7 @@
5151
- name: Claim a pre-added switch, apply a template, and perform an image upgrade for a specific site
5252
cisco.catalystcenter.pnp_workflow_manager:
5353
!!merge <<: *catalystcenter_login
54-
log: true
54+
catc_log: true
5555
state: merged
5656
config:
5757
- site_name: Global/USA/San Francisco/BGL_18
@@ -69,7 +69,7 @@
6969
- name: Claim an existing Wireless Controller, apply a template, and upgrade its image for a specified site
7070
cisco.catalystcenter.pnp_workflow_manager:
7171
!!merge <<: *catalystcenter_login
72-
log: true
72+
catc_log: true
7373
state: merged
7474
config:
7575
- site_name: Global/USA/San Francisco/BGL_18
@@ -91,7 +91,7 @@
9191
- name: Remove multiple devices from the PnP dashboard safely (ignores non-existent devices)
9292
cisco.catalystcenter.pnp_workflow_manager:
9393
!!merge <<: *catalystcenter_login
94-
log: true
94+
catc_log: true
9595
state: deleted
9696
config_verify: true
9797
config:

playbooks/accesspoint_workflow_manager.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
tasks:
99
- name: Updating Access Point Site / Configuration details
1010
cisco.catalystcenter.accesspoint_workflow_manager:
11-
_host: "{{ _host }}"
12-
_username: "{{ _username }}"
13-
_password: "{{ _password }}"
14-
_verify: "{{ _verify }}"
15-
_api_port: "{{ _api_port }}"
16-
_version: "{{ _version }}"
17-
_debug: "{{ _debug }}"
18-
log: true
19-
log_level: DEBUG
11+
catc_host: "{{ catc_host }}"
12+
catc_username: "{{ catc_username }}"
13+
catc_password: "{{ catc_password }}"
14+
catc_verify: "{{ catc_verify }}"
15+
catc_api_port: "{{ catc_api_port }}"
16+
catc_version: "{{ catc_version }}"
17+
catc_debug: "{{ catc_debug }}"
18+
catc_log: true
19+
catc_log_level: DEBUG
2020
config_verify: true
2121
state: merged
2222
force_sync: false

playbooks/app_policy_queuing_profile.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
tasks:
88
- name: Create
99
cisco.catalystcenter.app_policy_queuing_profile:
10-
_host: "{{ _host }}"
11-
_username: "{{ _username }}"
12-
_password: "{{ _password }}"
13-
_verify: "{{ _verify }}"
14-
_api_port: "{{ _api_port }}"
15-
_version: "{{ _version }}"
16-
_debug: "{{ _debug }}"
10+
catc_host: "{{ catc_host }}"
11+
catc_username: "{{ catc_username }}"
12+
catc_password: "{{ catc_password }}"
13+
catc_verify: "{{ catc_verify }}"
14+
catc_api_port: "{{ catc_api_port }}"
15+
catc_version: "{{ catc_version }}"
16+
catc_debug: "{{ catc_debug }}"
1717
state: present
1818
id: "a"
1919
payload:

playbooks/application_set_info.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
tasks:
88
- name: Get application sets local-services
99
cisco.catalystcenter.application_sets_info:
10-
_host: "{{ _host }}"
11-
_username: "{{ _username }}"
12-
_password: "{{ _password }}"
13-
_verify: "{{ _verify }}"
10+
catc_host: "{{ catc_host }}"
11+
catc_username: "{{ catc_username }}"
12+
catc_password: "{{ catc_password }}"
13+
catc_verify: "{{ catc_verify }}"
1414
name: local-services
1515
# limit: 3
1616
# offset: 2

0 commit comments

Comments
 (0)