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>
This commit is contained in:
parent
9de9596880
commit
1bac27ed27
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user