Skip to content

Commit

Permalink
Merge pull request #178 from cisco-en-programmability/develop
Browse files Browse the repository at this point in the history
Develop v6.17.0
  • Loading branch information
fmunozmiranda authored Aug 1, 2024
2 parents b123090 + 9bf1961 commit 9561c2a
Show file tree
Hide file tree
Showing 84 changed files with 23,420 additions and 2,110 deletions.
412 changes: 412 additions & 0 deletions .circleci/config.yml

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -932,3 +932,27 @@ releases:
- provision_workflow_manager.py - Added attribute 'provisioning'
- template_workflow_manager.py - Added attributes 'choices', 'failure_policy'
- events_and_notifications_workflow_manager.py - Added attributes 'webhook_event_notification', 'email_event_notification', 'syslog_event_notification'
6.17.0:
release_date: "2024-07-30"
changes:
release_summary: Code changes in workflow manager modules.
minor_changes:
- Added Circle CI support for integration testing.
- Adding pyzipper support in device_configs workflow manager module.
- Exporting export_device_details_limit in inventory workflow module.
- Adding run_compliance_batch_size support in network_compliance module.
- Changes in provision workflow manager module.
- Checking the device list in swim workflow manager module.
- UT and IT cases for worflow manager modules.
- Added 'user_role_workflow_manager' module to manage operations to create, update, and delete users and roles.
- Added 'rma_workflow_manager' module to manage RMA workflow.
- Added 'accesspoint_workflow_manager' module to manage access point configurations.
- discovery_intent.py: Changed attribute name 'desc' to 'description'.
- discovery_workflow_manager.py: Changed attribute name 'desc' to 'description'.
- events_and_notifications_worflow_manager.py: Changed attribute names from 'from_email', 'to_email', 'to send_email' and 'recipient_email'.
- inventory_intent.py: added attribute 'export_device_details_limit'.
- inventory_workflow_manager.py: added attribute 'export_device_details_limit'.
- ise_radius_integration_workflow_manager.py: changed the type of 'authentication_policy_server' from 'dict' to 'list'.
- network_compliance_workflow_manager.py: added attribute 'run_compliance_batch_size'.
- network_settings_workflow_manager.py: changed the type of network_management_details from 'dic' to 'list'.
- template_workflow_manager.py: added project_file and payload.
5 changes: 4 additions & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
namespace: cisco
name: dnac
version: 6.16.0
version: 6.17.0
readme: README.md
authors:
- Rafael Campos <rcampos@altus.cr>
Expand All @@ -17,6 +17,9 @@ authors:
- Abhishek Maheshwari <abmahesh@cisco.com>
- Phan Nguyen <phannguy@cisco.com>
- Rugvedi Kapse <rukapse@cisco.com>
- Rangaprabhu Deenadayalu <radeenad@cisco.com>
- Ajith Andrew J <jajandre@cisco.com>
- Syed Khadeer Ahmed <syedkahm@cisco.com>
description: Ansible Modules for Cisco DNA Center
license_file: "LICENSE"
tags:
Expand Down
49 changes: 49 additions & 0 deletions playbooks/accesspoint_workflow_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
- name: Provision/Move/Update Wireless Access Point Configuration
hosts: dnac_servers
connection: local
gather_facts: no
vars_files:
- "credentials.yml"
tasks:
- name: Updating Access Point Site / Configuration details
cisco.dnac.accesspoint_workflow_manager:
dnac_host: "{{ dnac_host }}"
dnac_username: "{{ dnac_username }}"
dnac_password: "{{ dnac_password }}"
dnac_verify: "{{ dnac_verify }}"
dnac_port: "{{ dnac_port }}"
dnac_version: "{{ dnac_version }}"
dnac_debug: "{{ dnac_debug }}"
dnac_log: True
dnac_log_level: DEBUG
config_verify: True
state: merged
force_sync: False
config:
- mac_address: 90:e9:5e:03:f3:40
rf_profile: "HIGH"
site:
floor:
name: "FLOOR1"
parent_name: "Global/USA/New York/BLDNYC"
ap_name: "LTTS-test1"
led_status: "Enabled"
led_brightness_level: 3
ap_mode: "Local"
location: "LTTS/Cisco/Chennai"
failover_priority: "Low"
2.4ghz_radio:
admin_status: "Enabled"
antenna_name: "C-ANT9104-2.4GHz"
radio_role_assignment: "Client-Serving"
channel_number: 3
powerlevel: 3
5ghz_radio:
admin_status: "Enabled"
antenna_name: "AIR-ANT2513P4M-N-5GHz"
radio_role_assignment: "Client-Serving"
channel_number: 48
powerlevel: 3
channel_width: "20 MHz"
register: output_list
1 change: 1 addition & 0 deletions playbooks/device_details.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ template_details:
template_name: 'DMVPN Spoke for Branch Router - System Default'
import_project:
do_version: false
project_file: 'JSON project file'
payload:
- name: 'Onboarding Configuration2'
import_template:
Expand Down
4 changes: 2 additions & 2 deletions playbooks/events_and_notifications_workflow_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
method: "{{item.webhook_destination.method}}"
trust_cert: "{{item.webhook_destination.trust_cert}}"
email_destination:
from_email: "{{item.email_destination.from_email}}"
to_email: "{{item.email_destination.to_email}}"
sender_email: "{{item.email_destination.sender_email}}"
recipient_email: "{{item.email_destination.recipient_email}}"
subject: "{{item.email_destination.subject}}"
primary_smtp_config:
server_address: "{{item.email_destination.primary_smtp_config.server_address}}"
Expand Down
8 changes: 4 additions & 4 deletions playbooks/ise_radius_integration_workflow_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
config_verify: True
config:
- authentication_policy_server:
server_type: AAA # [ISE, AAA]
- server_type: AAA # [ISE, AAA]
server_ip_address: 10.0.0.20
shared_secret: cisco
protocol: RADIUS_TACACS # [TACACS, RADIUS, RADIUS_TACACS]
Expand Down Expand Up @@ -49,7 +49,7 @@
config_verify: True
config:
- authentication_policy_server:
server_ip_address: 10.0.0.20
- server_ip_address: 10.0.0.20

- name: Create ISE Server.
cisco.dnac.ise_radius_integration_workflow_manager:
Expand All @@ -67,7 +67,7 @@
config_verify: True
config:
- authentication_policy_server:
server_type: ISE # [ISE, AAA]
- server_type: ISE # [ISE, AAA]
server_ip_address: 10.195.243.59
shared_secret: cisco
protocol: RADIUS_TACACS # [TACACS, RADIUS, RADIUS_TACACS]
Expand Down Expand Up @@ -106,4 +106,4 @@
config_verify: True
config:
- authentication_policy_server:
server_ip_address: 10.195.243.59
- server_ip_address: 10.195.243.59
2 changes: 1 addition & 1 deletion playbooks/network_settings_workflow_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
slaac_support: True
# prev_name: IP_Pool_4
network_management_details:
site_name: Global/Chennai
- site_name: Global/Chennai
settings:
network_aaa: #works only if we system settigns is set
primary_server_address: 10.0.0.20 #Mandatory for AAA and ISE
Expand Down
28 changes: 28 additions & 0 deletions playbooks/rma_workflow_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- hosts: localhost
connection: local
gather_facts: no
vars_files:
- "credentials.yml"
tasks:
- name: RMA workflow for faulty device replacement
cisco.dnac.rma_workflow_manager:
dnac_host: "{{ dnac_host }}"
dnac_username: "{{ dnac_username }}"
dnac_password: "{{ dnac_password }}"
dnac_verify: "{{ dnac_verify }}"
dnac_port: "{{ dnac_port }}"
dnac_version: "{{ dnac_version }}"
dnac_debug: "{{ dnac_debug }}"
dnac_log: true
dnac_log_level: DEBUG
config_verify: true
resync_retry_count: 1000
resync_retry_interval: 30
ccc_poll_interval: 2
timeout_interval: 100
state: replaced
config:
- faulty_device_ip_address: 204.1.2.9
replacement_device_ip_address: 204.1.2.10
register: result
72 changes: 72 additions & 0 deletions playbooks/user_role_workflow_manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
- name: Configure device credentials on Cisco Catalyst Center
hosts: localhost
vars_files:
- "credentials.yml"
connection: local
gather_facts: no
tasks:
- name: User and Role Workflow Manager
cisco.dnac.user_role_workflow_manager:
dnac_host: "{{dnac_host}}"
dnac_username: "{{dnac_username}}"
dnac_password: "{{dnac_password}}"
dnac_verify: "{{dnac_verify}}"
dnac_port: "{{dnac_port}}"
dnac_version: "{{dnac_version}}"
dnac_debug: "{{dnac_debug}}"
dnac_log: True
dnac_log_level: DEBUG
config_verify: True
dnac_api_task_timeout: 1000
dnac_task_poll_interval: 1
state: merged
config:
user_details:
- first_name: "ajith"
last_name: "andrew"
username: "ajithandrewj"
email: "ajith.andrew@example.com"
password: "Ajith@123"
role_list: ["Super-Admin-role"]
- first_name: "syed"
last_name: "khadeer"
username: "syedkhadeer"
email: "syedkhadeer@example.com"
password: "Syedkhadeer@123"
role_details:
- role_name: "Test_Role_1"
description: "Default role creation"
assurance:
- overall: "read"
troubleshooting_tools: "write"
network_analytics:
- overall: "deny"
- role_name: "Test_Role_2"
description: "Default role creation"
network_design:
- overall: "deny"
image_repository: "read"
network_provision:
- overall: "read"
eox: "write"
image_update: "read"
inventory_management:
- overall: "write"
port_management: "read"
network_services:
- overall: "deny"
bonjour: "Write"
platform:
- overall: "deny"
bundles: "read"
security:
- overall: "deny"
ip_based_access_control: "read"
security_advisories: "write"
system:
- overall: "deny"
machine_reasoning: "write"
utilities:
- overall: "deny"
audit_log: "read"
Loading

0 comments on commit 9561c2a

Please sign in to comment.