On Fri, Jul 19, 2013 at 02:09:15PM -0500, Salman Malik wrote:
> I am looking at sflow flow counters on collectors and each counter
> is associated with an ifindex. To interpret them correctly I need to
> find the ofport to which this ifindex corresponds. Is there a
> ovs-vsctl command to do that (I can't find any). The closest I could
> get to finding this mapping is to do a ovs-dpctl dump-flows | grep
> <ifindex> which shows the ifindex in the actions field e.g:
> actions:sample(sample=100.0%,actions(userspace(pid=4294963034,sFlow(vid=0,pcp=0,output=<ifindex>)))),17.
> 
> And then again, the dpctl shows datapath ports and I don't know how
> I can convert it to ofports. Also, if I take this route, these flows
> expire in period of non-activity and it might be good if you could
> let me know of a solution that gives persistent mapping.

This question is OVS specific so it's probably best for an OVS list.
I've added ovs-discuss.

The newest versions of Open vSwitch include an "ifindex" column in the
Interface table.  That's probably the mapping you need.
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to