Hi Rob,

Thanks! I am assuming you are talking about the value to set for the port_no
of ofp_port_stats_request. So, in include/openflow/openflow/openflow.h, it
is mentioned that OFPP_NONE must be used to request statistics for all
ports. I guess both OFPP_NONE and OFPP_ALL should do the same thing then.

Thanks,
--Hamid

On Thu, Apr 14, 2011 at 8:31 AM, Rob Sherwood <rob.sherw...@stanford.edu>wrote:

> Hi Hamid,
>
> At the openflow protocol level, you can ask for stats for the OFPP_ALL
> port, which will give you stats back on all of the ports.  It's not
> possible to supply an arbitrary list: it's either a single specific
> port or ALL.
>
> - Rob
> .
>
>
>
> On Thu, Apr 14, 2011 at 1:15 AM, Hamid Bazzaz <ha...@cs.ucsd.edu> wrote:
> > Hi folks,
> >
> > I would like to write a function in my NOX application to get the stats
> from
> > a set of ports of a certain switch. I found a function called
> > "send_port_stats_request" in coreapps/pyrt/pycontext.cc which requests
> for
> > stats from a _single_ port. But given that a Port_stats_in_event contains
> a
> > vector of ports I am sure there should be a way to request for stats of
> > multiple ports through a single request. I am wondering what is the way
> to
> > do so. Is there any sample code for requesting and receiving ports stats
> > that I could use besides pycontext.cc?
> >
> > Thanks,
> > --Hamid
> >
> > _______________________________________________
> > nox-dev mailing list
> > nox-dev@noxrepo.org
> > http://noxrepo.org/mailman/listinfo/nox-dev
> >
> >
>
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to