Thanks for the reply Vasu. So to clarify, if the rule gets hit, the action would send the packet out of port number 1 (since reg0 holds the value 1)?
On Wed, Mar 9, 2022 at 10:28 AM Vasu Dasari <[email protected]> wrote: > Yes. You can use the registers as part of output specification. > > For example, this following rule works: > > # If reg0 is 1 and reg1 is 1, then output such packet via reg0 > # reg0 and reg1 would have been set via learn operations earlier > ovs-ofctl add-flow br0 table=4 reg0=1,reg1=1 actions=output:reg0 > > *Vasu Dasari* > > > On Tue, Mar 8, 2022 at 4:58 PM Ashish Varma <[email protected]> > wrote: > >> I am trying to find the meaning of the following statement in the >> ovs-actions man page: >> >> "Output to a register is an OpenFlow extension introduced in Open vSwitch >> 1.3." >> >> Does this mean that we can specify an action like: >> "output:<RegisterName>" and the value of the output port would be taken >> from the given register? >> (Just like "output:field") >> >> Thanks, >> Ashish >> _______________________________________________ >> discuss mailing list >> [email protected] >> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss >> >
_______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
