diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-11-01 05:26:35 +0100 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-11-01 05:26:35 +0100 |
commit | 89c339634bb1a985719d0ab4f95009a3f8b098af (patch) | |
tree | c14f8a1e6fd6c3a0b7388b7f9432035e0b72b7a9 | |
parent | 5021716be31fcdac44bdacb0fa785416227ac394 (diff) |
simple_switch_12: handle non-buffering switch
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/app/simple_switch_12.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ryu/app/simple_switch_12.py b/ryu/app/simple_switch_12.py index 27a643cb..3df74e07 100644 --- a/ryu/app/simple_switch_12.py +++ b/ryu/app/simple_switch_12.py @@ -81,7 +81,11 @@ class SimpleSwitch12(app_manager.RyuApp): if out_port != ofproto.OFPP_FLOOD: self.add_flow(datapath, in_port, dst, actions) + data = None + if msg.buffer_id == ofproto.OFP_NO_BUFFER: + data = msg.data + out = datapath.ofproto_parser.OFPPacketOut( datapath=datapath, buffer_id=msg.buffer_id, in_port=in_port, - actions=actions) + actions=actions, data=data) datapath.send_msg(out) |