forked from cisco-en-programmability/dnacenter-ansible
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Network settings module and playbook
- Loading branch information
MUTHU-RAKESH-27
committed
Sep 29, 2023
1 parent
a6119d1
commit 3742d26
Showing
2 changed files
with
2,060 additions
and
0 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,86 @@ | ||
- hosts: dnac_servers | ||
vars_files: | ||
- credentials_245.yml | ||
gather_facts: no | ||
connection: local | ||
tasks: | ||
# | ||
# Project Info Section | ||
# | ||
|
||
- name: Create, update, delete global pool and reserve an ip pool | ||
cisco.dnac.network_settings_intent: | ||
dnac_host: "{{ dnac_host }}" | ||
dnac_port: "{{ dnac_port }}" | ||
dnac_username: "{{ dnac_username }}" | ||
dnac_password: "{{ dnac_password }}" | ||
dnac_verify: "{{ dnac_verify }}" | ||
dnac_debug: "{{ dnac_debug }}" | ||
dnac_log: True | ||
state: merged | ||
config: | ||
- GlobalPoolDetails: | ||
settings: | ||
ippool: | ||
- ipPoolName: Global_Pool2 | ||
gateway: "" #use this for updating | ||
IpAddressSpace: IPv6 #required when we are creating | ||
ipPoolCidr: 2001:db8::/64 #required when we are creating | ||
type: Generic | ||
dhcpServerIps: [] #use this for updating | ||
dnsServerIps: [] #use this for updating | ||
# prev_name: Global_Pool2 | ||
ReservePoolDetails: | ||
ipv6AddressSpace: True | ||
ipv4GlobalPool: 100.0.0.0/8 | ||
ipv4Prefix: True | ||
ipv4PrefixLength: 9 | ||
ipv4Subnet: 100.128.0.0 | ||
# ipv4DnsServers: [100.128.0.1] | ||
name: IP_Pool_3 | ||
ipv6Prefix: True | ||
ipv6PrefixLength: 64 | ||
ipv6GlobalPool: 2001:db8::/64 | ||
ipv6Subnet: "2001:db8::" | ||
siteName: Global/Chennai/Trill | ||
slaacSupport: True | ||
# prev_name: IP_Pool_4 | ||
type: LAN | ||
NetworkManagementDetails: | ||
settings: | ||
dhcpServer: | ||
- 10.0.0.1 | ||
dnsServer: | ||
domainName: cisco.com | ||
primaryIpAddress: 10.0.0.2 | ||
secondaryIpAddress: 10.0.0.3 | ||
clientAndEndpoint_aaa: #works only if we system settigns is set | ||
# ipAddress: 10.197.156.42 #Mandatory for ISE, sec ip for AAA | ||
network: 10.0.0.20 | ||
protocol: RADIUS | ||
servers: AAA | ||
# sharedSecret: string #ISE | ||
messageOfTheday: | ||
bannerMessage: hello | ||
retainExistingBanner: "true" | ||
netflowcollector: | ||
ipAddress: 10.0.0.4 | ||
port: 443 | ||
network_aaa: #works only if we system settigns is set | ||
# ipAddress: string #Mandatory for ISE, sec ip for AAA | ||
network: 10.0.0.20 | ||
protocol: TACACS | ||
servers: AAA | ||
# sharedSecret: string #ISE | ||
ntpServer: | ||
- 10.0.0.5 | ||
snmpServer: | ||
configureDnacIP: True | ||
ipAddresses: | ||
- 10.0.0.6 | ||
syslogServer: | ||
configureDnacIP: True | ||
ipAddresses: | ||
- 10.0.0.7 | ||
timezone: GMT | ||
siteName: Global/Chennai |
Oops, something went wrong.