On Wed, 6 Feb 2013 14:02:11 +0900 HIYAMA Manabu <[email protected]> wrote:
> File "/home/openflow/git/osrg/ryu/ryu/tests/integrated/tester.py", line > 167, in TestFlowBase > @handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER) > AttributeError: 'module' object has no attribute 'DPSET_EV_DISPATCHER' > > Signed-off-by: HIYAMA Manabu <[email protected]> > --- > ryu/tests/integrated/tester.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ryu/tests/integrated/tester.py b/ryu/tests/integrated/tester.py > index 9538e1d..f052c6c 100644 > --- a/ryu/tests/integrated/tester.py > +++ b/ryu/tests/integrated/tester.py > @@ -164,7 +164,7 @@ class TestFlowBase(app_manager.RyuApp): > self.results[self.current] = result > self.start_next_test(dp) > > - @handler.set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER) > + @handler.set_ev_cls(dpset.EventDP) > def handler_datapath(self, ev): > if ev.enter: > self.start_next_test(ev.dp) Oops, my bad. Thanks. I've applied this but my intention is keeping the API, not to break the existing applications... for a while. I've applied the following too. = >From 0435f7ff4d9ceb510a70e65d97db5f2e50657ef8 Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori <[email protected]> Date: Thu, 7 Feb 2013 06:20:15 +0900 Subject: [PATCH] dpset: fix the new event mechnism breakage Keep the compatibility for a while. Signed-off-by: FUJITA Tomonori <[email protected]> --- ryu/controller/dpset.py | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ryu/controller/dpset.py b/ryu/controller/dpset.py index 1660410..ade3cfe 100644 --- a/ryu/controller/dpset.py +++ b/ryu/controller/dpset.py @@ -27,6 +27,8 @@ import ryu.exception as ryu_exc LOG = logging.getLogger('ryu.controller.dpset') +DPSET_EV_DISPATCHER = "dpset" + class EventDPBase(event.EventBase): def __init__(self, dp): -- 1.7.4.4 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
