summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormarcelo <marcelo@nttmcl.com>2013-01-29 16:30:41 -0800
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-01-30 17:26:16 +0900
commit0ab98994ba90f79ba3b8853f7d5def687a03f7f2 (patch)
tree21d139ceaf2ee2bfacbfe55a841aba820c827d39
parent5dd7e2fa8c78cb817948a4513528bd18d39db136 (diff)
dpset: fix join race
the datapath object should be added to the list in DPSet before datapath_join event is fired. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/controller/dpset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ryu/controller/dpset.py b/ryu/controller/dpset.py
index 80ffb6f6..b6883b54 100644
--- a/ryu/controller/dpset.py
+++ b/ryu/controller/dpset.py
@@ -67,8 +67,8 @@ class DPSet(object):
if dp_type_ is not None:
dp.dp_type = dp_type_
- self.ev_q.queue(EventDP(dp, True))
self.dps[dp.id] = dp
+ self.ev_q.queue(EventDP(dp, True))
def unregister(self, dp):
if dp.id in self.dps: