How do I send a flow entry to drop a package using Ryu? I've learned from tutorials how to send package out flow entry:
- I define the action:
actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD)]
- Then the entry itself:
out = ofp_parser.OFPPacketOut(datapath=dp, buffer_id=msg.buffer_id, in_port=msg.in_port,actions=actions)
- Send the message to the switch:
dp.send_msg(out)
I'm trying to find the documentation to make this code drop the package instead of flooding, without success. I imagine I'll have to change actions on the first step and fp_parser.OFPPacketOut
on the second step. I need someone more experienced on Ryu and developing itself to point me to the right direction. Thank you.