Hi,
My code works well if I use OFPMatch with eth_dst or eth_type. but If I
want to add a flow to goto another table, it can't be added.
my add_flow function is:
def add_flow(self, datapath, table_id, priority, match, instruction):
"""
Add entry to switch table
:param datapath: target switch
:param table_id: id of table!
:param priority: higher number means higher priority
:param match: which flows match this entry
:param actions: what to do for matched flow
:param instruction: set for instruction commands such as GotoTable
:return: null
"""
ofproto = datapath.ofproto
parser = datapath.ofproto_parser
mod = parser.OFPFlowMod(datapath=datapath, table_id=table_id,
priority=priority, command=ofproto.OFPFC_ADD,
match=match, instructions=instruction)
datapath.send_msg(mod)
And it's part of my code to add the flow:
ins = [parser.OFPInstructionGotoTable(table_id=1)]
match = parser.OFPMatch(ip_proto=ip_protocol)
self.add_flow(datapath, 0, 2, match, None, ins)
Thanks for your response.
--
*Regards*
*Mehdi Saman Booy*
M.Sc. Student in Computer Science
*Isfahan University of Technology*
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel