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

Ramana Reddy gtvrreddy at gmail.com
Thu Feb 10 18:16:48 UTC 2011


Assume that 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

   Now  a vlan packet with tag = 10 is received to OVS, and the br0.10 is
configured as

   $sudo ovs-vsctl add-port br0 br0.10 tag=10 -- set interface br0.10
type=internal
   $sudo ifconfig br0.10 192.168.x.x  ( similar set up has done for br0.20)


   Now the default action taken place in OVS is : strip_vlan(10), output:2

   Now the packet becomes non vlan packet after this actions.

   Now I want to write another flow rule, which takes this stripped vlan
packet
   as input and apply this new rule on this packet and send to another port
   (In this case port 3).

   In other way, applying the new flow rule on those packets which are
received at output
   port of the previous action(s) ( in this case, the default action taken
by ovs).

   I believe that, this multiple flow rules structure helps in many
scenarios ( for example QOS setup in side the OVS)


   Thanks,
   Ramana Reddy.






On Thu, Feb 10, 2011 at 10:52 PM, Ben Pfaff <blp at nicira.com> wrote:

> On Thu, Feb 10, 2011 at 03:29:34PM +0530, Ramana Reddy wrote:
> > My Question is, can we take the output port of one action becomes the
> input
> > port of another action in side the OVS?
>
> I don't understand the question.  Can you give an example?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20110210/850b99a6/attachment-0001.html>


More information about the discuss mailing list