diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2012-01-31 16:45:05 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2012-02-01 08:55:43 +0900 |
commit | 5e0dbb61bfb6a297ea07522b82439115cfce664a (patch) | |
tree | a09eafe5b8200fc32313fc3e3f85a704d28a9bae | |
parent | 39bc833bf3dbc89ea48a645dabc59d196f9fba68 (diff) |
dispatcher, handler: constantiate dispatcher name
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/controller/handler.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ryu/controller/handler.py b/ryu/controller/handler.py index 744af898..79d89e2e 100644 --- a/ryu/controller/handler.py +++ b/ryu/controller/handler.py @@ -1,5 +1,5 @@ # Copyright (C) 2011 Nippon Telegraph and Telephone Corporation. -# Copyright (C) 2011 Isaku Yamahata <yamahata at valinux co jp> +# Copyright (C) 2011, 2012 Isaku Yamahata <yamahata at valinux co jp> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,9 +25,13 @@ from ryu.lib.mac import haddr_to_bin LOG = logging.getLogger('ryu.controller.handler') QUEUE_NAME_OFP_MSG = 'ofp_msg' -handshake_dispatcher = dispatcher.EventDispatcher('handshake') -config_dispatcher = dispatcher.EventDispatcher('config') -main_dispatcher = dispatcher.EventDispatcher('main') +DISPATCHER_NAME_OFP_HANDSHAKE = 'ofp_handshake' +handshake_dispatcher = dispatcher.EventDispatcher( + DISPATCHER_NAME_OFP_HANDSHAKE) +DISPATCHER_NAME_OFP_CONFIG = 'ofp_config' +config_dispatcher = dispatcher.EventDispatcher(DISPATCHER_NAME_OFP_CONFIG) +DISPATCHER_NAME_OFP_MAIN = 'ofp_main' +main_dispatcher = dispatcher.EventDispatcher(DISPATCHER_NAME_OFP_MAIN) def set_ev_cls(ev_cls, dispatchers=None): |