Previous patch contains wrong flow of if-statement, please ignore it.

Thanks!

Signed-off-by: Wei-Li Tang <[email protected]>
---
 ryu/topology/switches.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ryu/topology/switches.py b/ryu/topology/switches.py
index 4c66f0e..63335f2 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)
-- 
1.9.1


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to