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.

Argument actions of add_flow is missing.
So I think argument error occurred during add_flow execution.
Please add actions as an argument of add_flow.

Thanks,


On 2016年11月05日 22:09, mehdi Saman wrote:
> 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
> :paramdatapath: target switch
> :paramtable_id: id of table!
> :parampriority: higher number means higher priority
> :parammatch: which flows match this entry
> :paramactions: what to do for matched flow
> :paraminstruction: 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
>

------------------------------------------------------------------------------
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

Reply via email to