Data-center network automation: Its pitfalls and how to avoid them