Skip to content

Commit

Permalink
Merge pull request #93 from MUTHU-RAKESH-27/main
Browse files Browse the repository at this point in the history
Restore Automation Hub signed status for further versions
  • Loading branch information
madhansansel authored Jan 12, 2024
2 parents 54a9936 + 878789a commit ddbe686
Show file tree
Hide file tree
Showing 5 changed files with 89 additions and 89 deletions.
30 changes: 15 additions & 15 deletions playbooks/device_credential_intent.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- hosts: dnac_servers
vars_files:
- credentials_245.yml
- credentials.yml
gather_facts: no
connection: local
tasks:
Expand All @@ -23,26 +23,26 @@
cli_credential:
- description: CLI1
username: cli1
password: "12345"
enable_password: "12345"
password: '12345'
enable_password: '12345'
# old_description:
# old_username:
# id: e448ea13-4de0-406b-bc6e-f72b57ed6746 # Use this for updation or deletion
snmp_v2c_read:
- description: SNMPv2c Read1 # use this for deletion
read_community: "123456"
read_community: '123456'
# old_description: # use this for updating the description
# id: 0ee7d677-8804-43f2-8b6c-599c5f18348f # Use this for updation or deletion
snmp_v2c_write:
- description: SNMPv2c Write1 # use this for deletion
write_community: "123456"
write_community: '123456'
# old_description: # use this for updating the description
# id: a96abc1b-1fd6-41f1-8a6d-a5569c17262d # Use this for updation or deletion
snmp_v3:
- auth_password: "12345678" # Atleast 8 characters
- auth_password: '12345678' # Atleast 8 characters
auth_type: SHA # [SHA, MD5] (SHA is recommended)
snmp_mode: AUTHPRIV # [AUTHPRIV, AUTHNOPRIV, NOAUTHNOPRIV]
privacy_password: "12345678" # Atleast 8 characters
privacy_password: '12345678' # Atleast 8 characters
privacy_type: AES128 # [AE128, AE192, AE256]
username: snmpV31
description: snmpV31
Expand All @@ -51,15 +51,15 @@
https_read:
- description: HTTP Read1
username: HTTP_Read1
password: "12345"
password: '12345'
port: 443
# old_description:
# old_username:
# id: a7ef9995-e404-4240-94ca-b5f37f65c19d # Use this for updation or deletion
https_write:
- description: HTTP Write1
username: HTTP_Write1
password: "12345"
password: '12345'
port: 443
# old_description:
# old_username:
Expand All @@ -68,24 +68,24 @@
cli_credential:
# description: CLI
# username: cli
id: e448ea13-4de0-406b-bc6e-f72b57ed6746
id: 2fc5f7d4-cf15-4a4f-99b3-f086e8dd6350
snmp_v2c_read:
# description: SNMPv2c Read
id: 0ee7d677-8804-43f2-8b6c-599c5f18348f
id: a966a4e5-9d11-4683-8edc-a5ad8fa59ee3
snmp_v2c_write:
# description: SNMPv2c Write
id: a96abc1b-1fd6-41f1-8a6d-a5569c17262d
id: 7cd072a4-2263-4087-b6ec-93b20958e286
snmp_v3:
# description: snmpV3
id: d8974823-250a-41b0-8c9b-b27b2ae01472
id: c08a1797-84ce-4add-94a3-b419b13621e4
https_read:
# description: HTTP Read
# username: HTTP_Read
id: d5d7af00-5a38-4ac1-9f55-03338d00c415
id: 1009725d-373b-4e7c-a091-300777e2bbe2
https_write:
# description: HTTP Write
# username: HTTP_Write
id: bec9818e-30cd-468b-bf75-292beefc2e20
id: f1ab6e3d-01e9-4d87-8271-3ac5fde83980
site_name:
- Global/Chennai/Trill
- Global/Chennai/Tidel
Expand Down
69 changes: 69 additions & 0 deletions playbooks/device_details.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
template_details:
- proj_name: 'Onboarding Configuration'
device_config: 'hostname cat9k-1\n'
language: 'velocity'
family: 'Switches and Hubs'
type: 'IOS-XE'
variant: 'XE'
temp_name: 'temp_cat9k-1'
description: 'Test Template'
export_project:
- 'Cloud DayN Templates'
export_template:
- project_name: 'Cloud DayN Templates'
template_name: 'DMVPN Spoke for Branch Router - System Default'
import_project:
do_version: false
payload:
- name: 'Onboarding Configuration2'
import_template:
do_version: false
project_name: 'Onboarding Configuration'
payload:
- name: 'Platinum-Onboarding-Template-J21'
device_types:
- product_family: 'Switches and Hubs'
productSeries: 'Cisco Catalyst 9300 Series Switches'
software_type: 'IOS'
language: 'JINJA'
- name: 'Platinum-Onboarding-Template-J22'
device_types:
- product_family: 'Switches and Hubs'
productSeries: 'Cisco Catalyst 9300 Series Switches'
software_type: 'IOS'
language: 'JINJA'
- name: 'Platinum-Onboarding-Template-J23'
device_types:
- product_family: 'Switches and Hubs'
productSeries: 'Cisco Catalyst 9300 Series Switches'
software_type: 'IOS'
language: 'JINJA'

device_details:
- site_name: 'Global/Chennai/Trill'
image_name: 'cat9k_iosxe.17.04.01.SPA.bin'
proj_name: 'Onboarding Configuration'
temp_name: 'temp_cat9k-1'
device_version: '2'
device_number: 'AB2425L8M7'
device_name: 'Cat9k-1'
device_state: 'Unclaimed'
device_id: 'C9300-48UXM'
- site_name: 'Global/Chennai/Trill'
image_name: cat9k_iosxe.17.04.01.SPA.bin'
proj_name: 'Onboarding Configuration'
temp_name: 'temp_cat9k-2'
device_version: '2'
device_number: 'CD2425L8M7'
device_name: 'Cat9k-2'
device_state: 'Unclaimed'
device_id: 'C9300-48UXM'
- site_name: 'Global/Chennai/Trill'
image_name: 'cat9k_iosxe.17.04.01.SPA.bin'
proj_name: 'Onboarding Configuration'
temp_name: 'temp_cat9k-3'
device_version: '2'
device_number: 'EF2425L8M7'
device_name: 'Cat9k-3'
device_state: 'Unclaimed'
device_id: 'C9300-48UXM'
69 changes: 0 additions & 69 deletions playbooks/device_details.yml

This file was deleted.

6 changes: 3 additions & 3 deletions playbooks/network_settings_intent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
settings:
ip_pool:
- name: Global_Pool2
gateway: "" #use this for updating
gateway: '' #use this for updating
ip_address_space: IPv6 #required when we are creating
cidr: 2001:db8::/64 #required when we are creating
type: Generic
Expand All @@ -42,7 +42,7 @@
ipv6_prefix: True
ipv6_prefix_length: 64
ipv6_global_pool: 2001:db8::/64
ipv6_subnet: "2001:db8::"
ipv6_subnet: '2001:db8::'
site_name: Global/Chennai/Trill
slaac_support: True
# prev_name: IP_Pool_4
Expand All @@ -63,7 +63,7 @@
# shared_secret: string #ISE
message_of_the_day:
banner_message: hello
retain_existing_banner: "true"
retain_existing_banner: 'true'
netflow_collector:
ip_address: 10.0.0.4
port: 443
Expand Down
4 changes: 2 additions & 2 deletions playbooks/template_pnp_intent.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
- hosts: localhost
vars_files:
- "{{ CLUSTERFILE }}"
- device_details.yml
- credentials.yml
- device_details.template
gather_facts: false
connection: local
tasks:
Expand Down

0 comments on commit ddbe686

Please sign in to comment.