Hi Jason, your suggestion with combining the table_id with the command rsulting in an OF error message: type: OFPET_FLOW_MOD_FAILED(3) -- code: OFPFMFC_BAD_COMMAND(4)
I thought about moving to groups and buckets but due to internal reasons prefer the multipath() aaproach. Thanks, Ivica > -----Original Message----- > From: EXT Jason Kölker [mailto:[email protected]] > Sent: Thursday, April 07, 2016 6:36 PM > To: Rimac, Ivica (Nokia - DE) > Cc: [email protected] > Subject: Re: [Ryu-devel] Using NXActionMultipath for load balancing > > 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
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
