On Wed, Jul 10, 2013 at 03:01:24PM -0700, roampune wrote: > Hi Guys, > > I am new to openvswitch here, and was trying to redirect a vxlan flow > depending on tunnel id. > > my setup is a two bridge setup where bridge2 has vxlan tunnels with remote > ip set, and bridge1 (192.168.0.X) are directly connected to each other. > > two nodes with tunnel setup using commands: > 1) on first vm > sudo ovs-vsctl add-port br2 vxlan1 -- set interface vxlan1 type=vxlan > options:remote_ip=192.168.0.2 options:key=20480 > > 2) on second vm > sudo ovs-vsctl add-port br2 vxlan1 -- set interface vxlan1 type=vxlan > options:remote_ip=192.168.0.3 options:key=20480 > sudo ovs-ofctl del-flows br1 > sudo ovs-ofctl add-flow br1 "table=1 actions=NORMAL" > sudo ovs-ofctl add-flow br1 "table=0 priority=100 actions=resubmit(,1)" > sudo ovs-ofctl add-flow br1 "table=0 priority=200 > tun_id=20480,actions=mod_nw_dst:192.168.0.5,resubmit(,1)"
If you set up a tunnel to match on a particular tunnel ID (options:key=20480) then that key doesn't show up in the flow. You can either use options:key=flow or remove the tun_id=20480 match. _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss