Skip to content

Commit

Permalink
Merge pull request #119 from madhansansel/main
Browse files Browse the repository at this point in the history
New intent module to support network settings.
  • Loading branch information
fmunozmiranda authored Oct 13, 2023
2 parents 4b77674 + fd587b2 commit a0efb97
Show file tree
Hide file tree
Showing 14 changed files with 2,981 additions and 493 deletions.
86 changes: 86 additions & 0 deletions playbooks/network_settings_intent.yml
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
Loading

0 comments on commit a0efb97

Please sign in to comment.