Resourceful routing for dflow