Hi,

I guess you can use "NXActionRegMove" action for such case.
This action is one of the extended actions provided by OVS.
  
http://ryu.readthedocs.io/en/latest/nicira_ext_ref.html#ryu.ofproto.ofproto_v1_3_parser.NXActionRegMove

With the standard OpenFlow, "OFPActionCopyField" has the similar feature,
but this action requires the OpenFlow version 1.5 or later.
(AFAIK, OVS does not fully support OpenFlow 1.5)
  
http://ryu.readthedocs.io/en/latest/ofproto_v1_5_ref.html#ryu.ofproto.ofproto_v1_5_parser.OFPActionCopyField

Thanks,
Iwase


On 2017年03月29日 00:47, Pilar Manzanares wrote:
> Hello,
> 
> I would like to set up a flow table entry in a ovs that swaps the 
> ipv4_src and ipv4_dst address of a received packet.
> 
> The actions definition should be something similar to the following, but 
> I don't know how to refer to the fields of the received packet. Does it 
> exist something similar to OFPP_IN_PORT?
> 
> actions=[ofp_parser.OFPActionSetField(ipv4_src=???????),ofp_parser.OFPActionSetField(ipv4_dst=??????)]
> 
> Any idea?
> 
> Thank you very much in advance
> 
> 
> 
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
> 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to