On Wed, Sep 24, 2014 at 11:07:06AM +1000, Jaime Pillora wrote:
> #switch 1
> sh ovs-vsctl add-port s1 vx1 -- set interface vx1 type=vxlan
> option:remote_ip=172.16.4.1 option:key=flow ofport_request=11
> sh ovs-ofctl add-flow s1 'in_port=11,tun_id=2,actions=output:1'
> sh ovs-ofctl add-flow s1 'in_port=1,actions=set_field:1->tun_id,output:11'
> 
> #switch 2
> sh ovs-vsctl add-port s2 vx2 -- set interface vx2 type=vxlan
> option:remote_ip=172.16.4.1 option:key=flow ofport_request=22
> sh ovs-ofctl add-flow s2 'in_port=22,tun_id=1,actions=output:1'
> sh ovs-ofctl add-flow s2 'in_port=1,actions=set_field:2->tun_id,output:22’
> 
> I was hoping that packets incoming to OVS would match against the VXLAN
> port flows, however it seems as if OVS always chooses the first VXLAN port
> for all VXLAN packets

Both of these ports have the same configuration (same remote IP and
key), so they conflict and only one of them can be configured.  They are
actually acting on packets with different tunnel IDs, so you could
configure one of them with option:key=1 and the other one with
option:key=2.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to