[ovs-discuss] Regarding the add-flow rules in OVS

Ramana Reddy gtvrreddy at gmail.com
Thu Feb 10 10:11:57 UTC 2011


Adding some more stuff to my previous thread (Regarding the add-flow rules
in OVS).
Now the rules does not take effect, and I am unable to ping one external
machine to other
external machine through OVS as bridge.

On Thu, Feb 10, 2011 at 3:29 PM, Ramana Reddy <gtvrreddy at gmail.com> wrote:

> Here is my datapath dp0 contains 4 ports:
> $sudo ovs-dpctl show br0
> system at dp0:
>     flows: cur:15, soft-max:1024, hard-max:1048576
>     ports: cur:5, max:1024
>     groups: max:16
>     lookups: frags:0, hit:2034975, missed:136958, lost:0
>     queues: max-miss:100, max-action:100
>     port 0: br0 (internal)
>     port 1: eth0
>     port 2: br0.10
>     port 3: br0.20
>
> Here br0.10 and br0.20 are two interfaces with vlan 10 and 20 respectively.
> When I ping to br0.10 from outside vlan tag 10 interface, its pinging and
> the default action is stripping the vlan (10),
> and send to output port no 2. Now after stripping the packet, it becomes
> normal packet with out vlan, so I want to add vlan 20
> to this and send to port no 3.
>
> The rules I added like this:
>
> ovs-ofctl add-flow br0 "in_port=2 dl_vlan=0xffff idle_timeout=0
> actions=mod_vlan_vid:20, output:3"
> ovs-ofctl add-flow br0 "in_port=3 dl_vlan=0xffff idle_timeout=0
> actions=mod_vlan_vid:10, output:2"
>
> (I have taken dl_vlan=0xffff, because it is non vlan packet once it
> receives to port 2 or 3).
>
> My Question is, can we take the output port of one action becomes the input
> port of another action in side the OVS?
> if yes, what is the execution order of actions, if more than one match
> occurs.
>
> Thanks,
> Ramana Reddy.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110210/5fd9aa0b/attachment-0001.html>


More information about the discuss mailing list