generalize the sdn route