-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from cisco-en-programmability/develop
Develop
- Loading branch information
Showing
685 changed files
with
33,478 additions
and
8,072 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
dnacentersdk = ">=2.7.0" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
namespace: cisco | ||
name: dnac | ||
version: 6.13.3 | ||
version: 6.14.0 | ||
readme: README.md | ||
authors: | ||
- Rafael Campos <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
- name: Take running config backup of devices | ||
hosts: localhost | ||
connection: local | ||
gather_facts: no | ||
|
||
vars_files: | ||
- "{{ CLUSTERFILE }}" | ||
|
||
vars: | ||
dnac_login: &dnac_login | ||
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_level: "DEBUG" | ||
|
||
tasks: | ||
- name: Take backup of a wired 9500 switch | ||
cisco.dnac.device_configs_backup_workflow_manager: | ||
<<: *dnac_login | ||
dnac_log: True | ||
state: merged | ||
config_verify: True | ||
config: | ||
- hostname: NY-BN-9500.cisco.local | ||
file_path: /home/admin/madhan_ansible/collections/ansible_collections/cisco/dnac/playbooks/new_tmp | ||
|
||
- name: Take backup of all the switches | ||
cisco.dnac.device_configs_backup_workflow_manager: | ||
<<: *dnac_login | ||
dnac_log: True | ||
state: merged | ||
config_verify: True | ||
config: | ||
- family: Switches and Hubs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- | ||
- name: Configure channels and create events in Cisco Catalyst Center | ||
hosts: localhost | ||
connection: local | ||
gather_facts: no | ||
vars_files: | ||
- "input_events_and_notification.yml" | ||
- "credentials.yml" | ||
tasks: | ||
- name: Add/update channels with destination and create/update events in Cisco Catalyst Center. | ||
cisco.dnac.events_and_notifications_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_level: DEBUG | ||
dnac_log: true | ||
config_verify: true | ||
state: merged | ||
config: | ||
- syslog_destination: | ||
name: "{{item.syslog_destination.name}}" | ||
description: "{{item.syslog_destination.description}}" | ||
server_address: "{{item.syslog_destination.server_address}}" | ||
protocol: "{{item.syslog_destination.protocol}}" | ||
port: "{{item.syslog_destination.port}}" | ||
webhook_destination: | ||
name: "{{item.webhook_destination.name}}" | ||
description: "{{item.webhook_destination.description}}" | ||
url: "{{item.webhook_destination.url}}" | ||
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}}" | ||
subject: "{{item.email_destination.subject}}" | ||
primary_smtp_config: | ||
server_address: "{{item.email_destination.primary_smtp_config.server_address}}" | ||
port: "{{item.email_destination.primary_smtp_config.port}}" | ||
snmp_destination: | ||
name: "{{item.snmp_destination.name}}" | ||
description: "{{item.snmp_destination.description}}" | ||
server_address: "{{item.snmp_destination.server_address}}" | ||
port: "{{item.snmp_destination.port}}" | ||
snmp_version: "{{item.snmp_destination.snmp_version}}" | ||
username: "{{item.snmp_destination.username}}" | ||
mode: "{{item.snmp_destination.mode}}" | ||
auth_type: "{{item.snmp_destination.auth_type}}" | ||
auth_password: "{{item.snmp_destination.auth_password}}" | ||
privacy_type: "{{item.snmp_destination.privacy_type}}" | ||
privacy_password: "{{item.snmp_destination.privacy_password}}" | ||
itsm_setting: | ||
instance_name: "{{item.itsm_setting.instance_name}}" | ||
description: "{{item.itsm_setting.description}}" | ||
connection_settings: | ||
url: "{{item.itsm_setting.connection_settings.url}}" | ||
username: "{{item.itsm_setting.connection_settings.username}}" | ||
password: "{{item.itsm_setting.connection_settings.password}}" | ||
|
||
with_items: "{{ events_notification }}" | ||
tags: | ||
- events_testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
events_notification: | ||
- syslog_destination: | ||
name: Syslog Demo test | ||
description: "Adding syslog destination for testing" | ||
server_address: "10.30.0.90" | ||
protocol: "TCP" | ||
port: 652 | ||
webhook_destination: | ||
name: "webhook demo 19" | ||
description: "webhhok description for testing" | ||
url: "https://10.195.227.14/dna" | ||
method: "POST" | ||
trust_cert: False | ||
email_destination: | ||
from_email: "[email protected]" | ||
to_email: "[email protected]" | ||
subject: "Ansible testing" | ||
primary_smtp_config: | ||
server_address: "outbound.cisco.com" | ||
port: '25' | ||
snmp_destination: | ||
name: Snmp test | ||
description: "Adding snmp destination for testing for update" | ||
server_address: "10.30.0.91" | ||
port: '265' | ||
snmp_version: "V3" | ||
username: cisco123 | ||
mode: AUTH_PRIVACY | ||
auth_type: SHA | ||
auth_password: authpass123 | ||
privacy_type: AES128 | ||
privacy_password: privacy123 | ||
itsm_setting: | ||
instance_name: "Playbook itsm demo" | ||
description: "ITSM description for testing" | ||
connection_settings: | ||
url: "https://catalystcente1.com" | ||
username: "catalyst" | ||
password: "catalyst@123" |
Oops, something went wrong.