Skip to content

Commit

Permalink
Merge pull request #78 from abimishr/PNP_Code_Abinash
Browse files Browse the repository at this point in the history
Making the previously kept template_pnp_intent playbook to underscore…
  • Loading branch information
madhansansel authored Dec 20, 2023
2 parents 50bb9b8 + 3cdcef6 commit de0129c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
6 changes: 3 additions & 3 deletions playbooks/device_details.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ device_details:
device_number: "AB2425L8M7"
device_name: "Cat9k-1"
device_state: "Unclaimed"
device_id: "C9300-25UX"
device_id: "C9300-48UXM"
- site_name: "Global/Chennai/Trill"
image_name: "cat9k_iosxe.17.04.01.SPA.bin"
proj_name: "Onboarding Configuration"
Expand All @@ -57,7 +57,7 @@ device_details:
device_number: "CD2425L8M7"
device_name: "Cat9k-2"
device_state: "Unclaimed"
device_id: "C9300-25UX"
device_id: "C9300-48UXM"
- site_name: "Global/Chennai/Trill"
image_name: "cat9k_iosxe.17.04.01.SPA.bin"
proj_name: "Onboarding Configuration"
Expand All @@ -66,4 +66,4 @@ device_details:
device_number: "EF2425L8M7"
device_name: "Cat9k-3"
device_state: "Unclaimed"
device_id: "C9300-25UX"
device_id: "C9300-48UXM"
25 changes: 12 additions & 13 deletions playbooks/template_pnp_intent.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
- hosts: dnac_servers
- hosts: localhost
vars_files:
- credentials_245.yml
- "{{ CLUSTERFILE }}"
- device_details.yml
gather_facts: false
connection: local
tasks:
#
# Project Info Section
#
- name: Test project template
- name: Test project template
cisco.dnac.template_intent:
dnac_host: "{{ dnac_host }}"
dnac_port: "{{ dnac_port }}"
Expand All @@ -22,14 +22,14 @@
config:
- configuration_templates:
project_name: "{{ item.proj_name }}"
template_name: "{{ item.temp_name }}"
template_content: "{{ item.device_config }}"
version_description: "{{ item.description }}"
language: "{{ item.language }}"
device_types:
- product_family: "{{ item.family }}"
software_type: "{{ item.type }}"
software_variant: "{{ item.variant }}"
template_name: "{{ item.temp_name }}"
version_description: "{{ item.description }}"
device_types:
- product_family: "{{ item.family }}"
register: template_result
with_items: '{{ template_details }}'
tags:
Expand All @@ -50,12 +50,11 @@
project_name: "{{ item.proj_name }}"
template_name: "{{ item.temp_name }}"
image_name: "{{ item.image_name }}"
device_version: "{{ item.device_version }}"
deviceInfo:
serialNumber: "{{ item.device_number }}"
hostname: "{{ item.device_name}}"
state: "{{ item.device_state }}"
pid: "{{ item.device_id }}"
device_info:
- serial_number: "{{ item.device_number }}"
hostname: "{{ item.device_name}}"
state: "{{ item.device_state }}"
pid: "{{ item.device_id }}"
register: pnp_result
with_items: '{{ device_details }}'
tags:
Expand Down

0 comments on commit de0129c

Please sign in to comment.