On Wed, Jan 02, 2013 at 07:18:07PM +0000, Jing Ai wrote:
> 
> I intend to test metadata matching in the following scenario:
> Initially, I brought up a VM with address 192.168.1.1/24 (tap0) and configure 
> NAT to the Internet. Later, I added a couple of flows in the table:
> ovs-ofctl add-flow br0 
> table=0,in_port=1,ip,nw_src=192.168.1.1,actions="resubmit(,1)",write_metadata:18
>  // add metadata 18 to the flow from 192.168.1.1, port 1 and redirect to 
> table 1
> ovs-ofctl add-flow br0 table=1,metadata=18,actions=LOCAL // in table 1, match 
> the flow with metadata 18 and then output to the local port

write_metadata is an instruction that gets executed after
Apply-Actions, which means that the resubmit action gets executed
before metadata gets written.

I think that you can use "load" to get the effect that you want, since
that's an action.
_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to