P.S: I left out the line flows = of.ofp_match() On Fri, Feb 17, 2012 at 4:36 AM, Aaron Rosen <aro...@clemson.edu> wrote: > Hi, > > You should add monitoring as a dependency to your application. Then > add the following things: > > from nox.netapps.monitoring.monitoring import Monitoring > import nox.lib.pyopenflow as of > > class something(component): > def __init(self, ctxt): > ...... > inst.Monitoring = ctxt.resolve(Monitoring) > .... > def install(self): > ..... > inst.register_for_flow_stats_in(flow_stats_in_handler) > > > Now you should be able to: > > flows.wildcards = of.OFPFW_ALL > flows.dl_type=ethernet.IP_TYPE > inst.Monitoring.send_flow_stats_request(dpid, flows, 0xff, xid); > > When flowstats are returned to you they should now go to: > > > def flow_stats_in_handler(dpid, flows, more, xid): > print flows > > > Aaron > > On Fri, Feb 17, 2012 at 3:03 AM, Siddharth Sharma > <sid.sharma...@gmail.com> wrote: >> Hi, >> >> I am trying to get the statistics by calling the functions of >> 'Monitoring' component. But I do not know exactly how to do that. >> >> I understand how the 'Monitoring' component works, but I do not know how to >> get the data (flow stats) into another component (which I am writing). >> >> Please help me get the information. >> >> Thanks for the help. >> >> Siddharth Sharma >> >> _______________________________________________ >> nox-dev mailing list >> nox-dev@noxrepo.org >> http://noxrepo.org/mailman/listinfo/nox-dev >> > > > > -- > Aaron O. Rosen > Masters Student - Network Communication > 306B Fluor Daniel
-- Aaron O. Rosen Masters Student - Network Communication 306B Fluor Daniel _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev