On Thu, Apr 7, 2016 at 2:59 PM, Rimac, Ivica (Nokia - DE)
<[email protected]> wrote:
> Hi Iwase,
>
> that helped ... I have been able to add the multipath flow to my switch!
>
> However, I am resubmitting the packet to another table (in my example it is
> table_idx=1), into which I need to write the 2nd set of rules (each matching
> a different value in reg0). Now here is where I fail since the class
> OFPFlowMod() in v1_0 does not have an argument for the table to write to
> (which v1_0_parser does).
>
> Any idea on how to accomplish this?
You can specify the table by combining it with the command in the higher bits
def augment_command_with_table_id(command, table_id):
return (int(table_id) << 8) + int(command)
cmd = self.augment_command_with_table_id(ofproto.OFPFC_ADD, 10)
datapath.send_flow_mod(rule=<Match>, command=cmd)
However if you're target is OVS, I'd recommend you switch to openflow
1.3 and use groups and buckets for multipathing. The group select in
openvswitch is still a symetric l4 hash.
Happy Hacking!
7-11
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel