On Wed, Jul 10, 2013 at 3:05 PM, Ben Pfaff <b...@nicira.com> wrote:

> 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.
>

awesome, thanks for the quick reply, didn't knew that the key doesn't show
up in the flow if tunnel is set to match the id. so basically in my setup i
can't match on tunnel id, because the second bridge generate them for me,
right? and if set it to flow, then the tunnel has 0x0 as tunnel id and flow
match on bridge one doesn't work. hmm weird. thanks anyways.

Regards.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to