NALD follows on from William Lam's PowerCLI VVLD (vSphere vGhetto Lab Deployment) to configure various NSX (Data Center for vSphere) components. In full deployment it provides end-to-end connectivity from VMs connected to logical switches, through a DLR and ESG into the physical network via OSPF.
This uses pyVmomi to interact with vCenter and the native REST API to interact with the NSX Manager and has been tested on the following versions (others should work but YMMV):
- Python: 3.5, 3.6
- vSphere: 6.7, 6.7U1, 6.7U2
- NSX: 6.4.4, 6.4.5
- Apply NSX license
- Host-Prep on cluster (install NSX VIBs and VXLAN)
- Create Transport Zone and Segment ID Pool
- Create IP Pools (Controller and VTEP)
- Deploy controller(s)
- Create Logical Switches
- Deploy DLR
- Deploy ESG
- Configure OSPF between DLR & ESG and ESG and physical network
When deployed with the default config.ini to a VVLD, NALD will build the following topology:
NALD assumes that the undelying vSphere infrastructure is deployed in a similar topology to VVLD and that the physical network has been configured for OSPF area 0 connecting to the ESG that will be deployed.
- Install Python and download NALD using
git clone https://github.com/certanet/NALD.git
or as a .zip and extract - Create a virtual env to separate NALD from system packages:
python -m venv venv
- Enter the virtual env:
venv\Scripts\activate.bat
- Install the packages required to run NALD:
pip install -r requirements.txt
- Rename the provided
config.ini.example
file toconfig.ini
- Replace the configuration settings to match your environment, note that the defaults have been set to work with a VVLD, but at a minimum you must enter an NSX license, as this is required for host prep.
- Run NALD against your vSphere and NSX environment:
python nsxm.py
- Watch your automated lab deploy before your very eyes!
Convert remaining methods (DLR and ESG) to JSONRemove seperate method for edge routing- Add SSL VPN config to ESG