diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-08-29 22:54:21 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-08-31 09:30:16 +0900 |
commit | 90021d43c1ecfdc7e7d53d1d1f8479f3181d4e7b (patch) | |
tree | e64a4a3a8910fb0a96432ac1e6c534651d5dfd0f | |
parent | 6e55bc8b98f5563993fd9d46ab2398b657ea180e (diff) |
remove OFPFlowRemoved and OFPPortStatus handlers in MAIN_DISPATCHER
I don't see any reason why we need to handle those two OFP messages as
differently as the rest.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/controller/handler.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index ee4f8054..03157d8a 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -189,13 +189,4 @@ class ConfigHandler(object): @register_cls(MAIN_DISPATCHER) class MainHandler(object): - @staticmethod - @set_ev_cls(ofp_event.EventOFPFlowRemoved) - def flow_removed_handler(ev): - pass - - @staticmethod - @set_ev_cls(ofp_event.EventOFPPortStatus) - def port_status_handler(ev): - msg = ev.msg - LOG.debug('port status %s', msg.reason) + pass |