FUJITA Tomonori
567cb2c364
fix datapath disconnection cleanup
...
After the datapath connection is close, we call gevent.joinall for
ev_thr and send_thr greenlets to wait for the completion of them.
However, gevent.joinall will block forever since the greenlets sleep.
We can put some junk to the queues to wake them but looks like just
killing the greenlets is simpler.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-05 15:41:30 +09:00
FUJITA Tomonori
78e3eba75d
remove unused members in Datapath class
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03 12:21:14 +09:00
Isaku Yamahata
c22ef47a9c
controller: factor out ofp message event from event.py
...
Move out ofp msg event from event.py into ofp_event.py
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03 02:36:26 +09:00
Isaku Yamahata
b3002281e9
pylint: various fixes for pylint
...
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-03 02:35:38 +09:00
Isaku Yamahata
e66a04e80e
controller/dpset: Introduce datapath enter/leave event
...
Introduce DPSet class to track datapath enter/leave and generate events.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01 08:55:44 +09:00
Isaku Yamahata
39bc833bf3
controller: pass datapath to EventQueue for EventQueueCreate event
...
Later dpset is decoupled with EventQueueCreate.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01 08:55:42 +09:00
Isaku Yamahata
4dd1118b7d
dispatcher: pass name to EventQueue and track all instances
...
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-02-01 08:55:35 +09:00
FUJITA Tomonori
0be016c271
use 0 dl_{src, dst} for OFPMatch
...
Simplify the code a bit.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-31 04:02:21 +09:00
Isaku Yamahata
104436157a
xid: improve xid handling
...
Generate xid for ofp message instead of always 0.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-30 18:32:47 +09:00
FUJITA Tomonori
cd0fbaffd9
Fix to send OFPT_HELLO with the highest OpenFlow protocol version
...
Preparation for 1.2 support.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2012-01-17 23:04:31 +09:00
FUJITA Tomonori
aa5051a162
initial commit
...
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
2011-12-09 15:56:05 +09:00