Software-defined elastic optical networks