-
Notifications
You must be signed in to change notification settings - Fork 0
/
listOfThings.py
40 lines (29 loc) · 1.25 KB
/
listOfThings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#python 3
"""
The Vlan and subnet variables are input() in the script
"""
import pyfiglet
banner = pyfiglet.figlet_format("ACI Automation")
#Add the FQDN of the APIC as the host string below
host = 'sandboxapicdc.cisco.com'
#Vlan pool
vlanPool = 'Vlan_Pool_Core'
#AEP
aep = 'AEP_Core'
#Physical domain
domain = 'Domain_Core'
#Tenant - using common to test
environment = 'common'
#VRF - using default to test
vrf = 'default'
#these are the interfaces you would normally statically pin to the BD from your border leaves
#update them so they match your vPCs etc
#update the domain in 'fvRsDomAtt'.
borderLeafInterfaces = [{'fvRsPathAtt': {'attributes': {'encap': '', 'tDn': 'topology/pod-1/paths-202/pathep-[eth1/35]'}}},
{'fvRsPathAtt': {'attributes': {'encap': '', 'tDn': 'topology/pod-1/paths-202/pathep-[eth1/33]'}}},
{'fvRsPathAtt': {'attributes': {'encap': '', 'tDn': 'topology/pod-1/paths-201/pathep-[eth1/33]'}}},
{'fvRsPathAtt': {'attributes': {'encap': '', 'tDn': 'topology/pod-1/paths-201/pathep-[eth1/35]'}}},
{'fvRsPathAtt': {'attributes': {'encap': '', 'tDn': 'topology/pod-1/protpaths-201-202/pathep-[policy_vpc_201_202_23_24]'}}},
{'fvRsDomAtt': {'attributes': { 'tDn': f'uni/phys-domain_{domain}'}}},
{'fvRsBd': {'attributes': {'tnFvBDName': ''}}}
]