Skip to content

Commit

Permalink
Merge pull request #3 from madhansansel/main
Browse files Browse the repository at this point in the history
latest changes
  • Loading branch information
rukapse authored Jan 23, 2024
2 parents 68fac25 + 5454c73 commit a095d6f
Show file tree
Hide file tree
Showing 11 changed files with 573 additions and 112 deletions.
4 changes: 2 additions & 2 deletions changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -764,9 +764,9 @@ releases:
- To Support provisioning wired device, reboot AP's, export device list, delete provisioned devices.
- Change the variable names into snake case in all the intent modules for better readability.
6.10.1:
release_date: "2023-12-22"
release_date: "2024-01-20"
changes:
release_summary: Changes in network settings, site, inventory and provisioning intent modules
release_summary: Changes in network settings, site, discovery, inventory, swim, credential and provisioning intent modules
minor_changes:
- Introducing config_verify to verify the state operations in Catalyst Center in network settings and site intent module
- Changes to support inventory and provisioning intent modules
4 changes: 3 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.10.0
version: 6.10.1
readme: README.md
authors:
- Rafael Campos <[email protected]>
Expand All @@ -15,6 +15,8 @@ authors:
- Akash Bhaskaran <[email protected]>
- Abinash Mishra <[email protected]>
- Abhishek Maheshwari <[email protected]>
- Phan Nguyen <[email protected]>
- Rugvedi Kapse <[email protected]>
description: Ansible Modules for Cisco DNA Center
license_file: "LICENSE"
tags:
Expand Down
12 changes: 7 additions & 5 deletions playbooks/PnP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@
<<: *dnac_login
dnac_log: True
state: merged
config_verify: True
config:
- site_name: Global/USA/San Francisco/BGL_18
device_info:
- serial_number: CD2425L8M7
- device_info:
- serial_number: QD2425L8M7
state: Unclaimed
pid: c9300-24P
is_sudi_required: False

- serial_number: FTC2320E0H9
- serial_number: QTC2320E0H9
state: Unclaimed
pid: c9300-24P
hostname: Test-123

- serial_number: ETC2320E0HB
state: Unclaimed
Expand Down Expand Up @@ -101,8 +102,9 @@
<<: *dnac_login
dnac_log: True
state: deleted
config_verify: True
config:
- device_info:
- serial_number: FTC2320E0HB #Will get deleted
- serial_number: QD2425L8M7 #Will get deleted
- serial_number: FTC2320E0HA #Doesn't exist in the inventory
- serial_number: FKC2310E0HB #Doesn't exist in the inventory
23 changes: 22 additions & 1 deletion playbooks/discovery_intent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
cisco.dnac.discovery_intent:
<<: *dnac_login
state: merged
config_verify: True
config:
- devices_list:
- name: SJ-BN-9300
Expand All @@ -37,8 +38,28 @@
l2interface: TenGigabitEthernet1/1/6
ip: 204.1.2.3
discovery_type: "MULTI RANGE"
discovery_name: Multi_Range_Discovery_Test
protocol_order: ssh
start_index: 1
records_to_return: 25
snmp_version: v2


- name: Execute discovery devices using CDP/LLDP/CIDR
cisco.dnac.discovery_intent:
<<: *dnac_login
state: merged
config_verify: True
config:
- devices_list: #List length should be one
- name: SJ-BN-9300
site: Global/USA/SAN JOSE/BLD23
role: MAPSERVER,BORDERNODE,INTERNAL,EXTERNAL,SDATRANSIT
l2interface: TenGigabitEthernet1/1/8
ip: 204.1.2.1
discovery_type: "CDP" #Can be LLDP and CIDR
cdp_level: 16 #Instead use lldp for LLDP and prefix length for CIDR
discovery_name: CDP_Test_1
protocol_order: ssh
start_index: 1
records_to_return: 25
snmp_version: v2
1 change: 1 addition & 0 deletions playbooks/template_pnp_intent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
dnac_debug: "{{ dnac_debug }}"
dnac_log: true
state: "merged"
config_verify: true
#ignore_errors: true #Enable this to continue execution even the task fails
config:
- configuration_templates:
Expand Down
Loading

0 comments on commit a095d6f

Please sign in to comment.