diff options
author | Wei-Li Tang <alextwl@xinguard.com> | 2014-12-24 22:05:49 +0800 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2014-12-28 10:26:50 +0900 |
commit | 1bac27ed274f36a6d3ada745d17b5423abc7aa6b (patch) | |
tree | c2b4ce75205a593567f4350f11d5c0fb4a9f85db | |
parent | 9de9596880af8ebbd4d9d38e52ee6084de380195 (diff) |
topology/switches: add of1.2+ support for the drop_packet function.
Signed-off-by: Wei-Li Tang <alextwl@xinguard.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/topology/switches.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py index 4c66f0e4..63335f2a 100644 --- a/ryu/topology/switches.py +++ b/ryu/topology/switches.py @@ -673,6 +673,8 @@ class Switches(app_manager.RyuApp): # TODO:XXX if dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION: dp.send_packet_out(buffer_id, msg.in_port, []) + elif dp.ofproto.OFP_VERSION >= ofproto_v1_2.OFP_VERSION: + dp.send_packet_out(buffer_id, msg.match['in_port'], []) else: LOG.error('cannot drop_packet. unsupported version. %x', dp.ofproto.OFP_VERSION) |