On Mon, Feb 13, 2012 at 1:09 PM,  <ravi.ke...@telekom.com> wrote:
> Hello,
>
>
>
> I am trying to send simple vlan packets via a C program and wanted a vlan
> specific action executed before sending out on wire. I have configured
> following flows in ovs
>
>
>
> root@rkerur-ThinkPad-T400:~/mpls_vlan_0209/openvswitch# ovs-ofctl dump-flows
> br0
>
> NXST_FLOW reply (xid=0x4):
>
>  cookie=0x0, duration=4685.567s, table=0, n_packets=110, n_bytes=5808,
>
> idle_timeout=50000,idle_age=27,priority=65535,arp actions=NORMAL
>
>
>
>  cookie=0x0, duration=4685.566s, table=0, n_packets=0, n_bytes=0,
>
> idle_timeout=50000,idle_age=4685,priority=65535,dl_type=0x8100
>
> actions=strip_vlan,output:1
>
>
>
> I basically assuming generated vlan packets from the program would match the
> second flow entry and strip vlan before sending it. From the stats
> (n_packets=0) looks like it's not matched. What's coming out from tcpdump
> capture is

Both flows match the packet and have the same priority, so OpenFlow
says that the behavior is undefined.  In this case, presumably it's
matching the first flow.

> Ovs-ofctl man page talks about packet-out argument, however, I am not quite
> clear on the syntax.
>
>
>
> ovs-ofctl packet-out br0 local strip_vlan,1 <packet>, what should packet be?
> Should it point to the packet sent out by the program?

It's the packet that you want to send in hex.
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to