diff --git a/ryu/base/app_manager.py b/ryu/base/app_manager.py index ab6175ac..53419cfc 100644 --- a/ryu/base/app_manager.py +++ b/ryu/base/app_manager.py @@ -123,6 +123,13 @@ class RyuApp(object): for observer in self.get_observers(ev, state): self.send_event(observer, ev) + def reply_to_request(self, req, rep): + rep.dst = req.src + if req.sync: + self.send_reply(rep) + else: + self.send_event(rep.dst, rep) + def close(self): """ teardown method.