To use this code you will need
Python3.6+Windowsoperating system
Before execute scripts please modify some startup information in the two file below:
login_info.py: modify yourAPICaddress andusername/passwordstartup_config.py: modify some startup config(manual configed) such asTenants,AppProfiles,EPGS,Interface Policy Groups. Examples are in thestartup_config.py.
Two scripts are executable, fabric_intprofile_setup.py and access_port_config.py:
-
Fabric interfaces startup config. Create
Leaf Interface Profilefor every leaf switch and addAccess Port Selectorfor every port under every leaf switch Excutefabric_intprofile_setup/fabric_intprofile_setup.pyto do configure, it will ask for leaf range(ex.101-108) and number of ports(ex.48) on every leaf on CMD -
According to access requests given by other partners of
storage/virtualization/server, auto config theAccess Port Selectorand add description. For untag mode access machines, the codes first auto change the “Leaf Access Port Policy Group” which policy group attached an AEP without EPG recognizing, then codes configstatic portsunder specific EPG.
- In
endpoint_access_config/accessrequest.csvfill your access requests - Excute
endpoint_access_config/access_port_config.pyto do configure