[ovs-discuss] Nat functionality using Openflow, - Flow not allowed

Ben Pfaff blp at ovn.org
Wed May 24 17:57:09 UTC 2017


On Wed, May 24, 2017 at 01:23:00PM +0530, rahul b wrote:
> Hi i am trying to emulate nat functionality with a flow like this.
> 
> ovs-ofctl add-flow s1 -Oopenflow13
> priority=100,dl_type=0x806,in_port=1,action=mod_nw_src=10.10.10.3,output:2
> 
> this results in an error
> 
> ovs-ofctl: none of the usable flow formate (OpenFlow10,NXM) is among the
> allowed flow formats (OXM-OpenFlow13)

This is because mod_nw_src works with IPv4.

You can use something like this instead:
ovs-ofctl add-flow br0 'arp,action=set_field:10.10.10.3->arp_spa'


More information about the discuss mailing list