-
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 #119 from madhansansel/main
New intent module to support network settings.
- Loading branch information
Showing
14 changed files
with
2,981 additions
and
493 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 global pool, reserve subpool and network functions | ||
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.