This document describes how Box automated their network configuration by building an Infrastructure API. The API generates all configuration details for switches mathematically based on identifiers for datacenter, pod, cabinet, and host type. It handles tasks like IP and hostname assignment, DNS registration, and cable mapping. New switches can now be automatically provisioned by downloading scripts that call the API to generate configs and register the switch. This reduces human errors and saves significant time in network provisioning and management. Potential issues include incorrectly allocated identifiers or cabling errors, but the system aims to make the network "smarter than humans."