Building Autonomic Optical Whitebox-Based Networks