summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/topology/switches.py2
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)