Hello,

I'm trying to use the monitoring module to query switches for a specific
flow's packet/byte count.  I've added:

       inst.register_for_aggregate_stats_in(aggregate_stats_in_handler)

def aggregate_stats_in_handler(dpid, stats):
    print stats


And I have the following code in a timer:
    for dpid in inst.st.keys():
        flow = of.ofp_match()
        flow.dl_type=ethernet.IP_TYPE
        inst.Monitoring.send_aggregate_stats_request(dpid, flow, 0xff, xid);


This seems to be working because aggregate_stats_in_handler is being called
though when I print stats I usually get:
{'packet_count': 0L, 'byte_count': 0L, 'flow_count': 0L}

though some times there are values
  {'packet_count': 65L, 'byte_count': 98L, 'flow_count': 2L}

And I still have the same ping running.

Any ideas what's going wrong?

Thanks,

Aaron


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

Reply via email to