Implementing a Software-Defined Datacenter