hi,
Currently im using NOX 0.9.0(zaku)~full~beta (nox_core), compiled Jan  3
2012 15:21:13
Compiled with OpenFlow 0x01

Now i have developed this api for getting aggregrate table stats
1. def aggregate_timer(self, dp):
                flow = ofp_match()
                flow.dl_type=ethernet.ethernet.IP_TYPE
                flow.nw_proto=ipv4.ipv4.ICMP_PROTOCOL
                self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
                self.post_callback(MONITOR_TABLE_PERIOD, lambda :
self.aggregate_timer(dp))

Now when i connect nox controller to switch and display the aggregrate
statistics i get
Aggregate stats in from datapath 2c:27:d7:1d:08:7d
packet_count-- 0
flow_count-- 0
byte_count-- 0
however i have a rule with nw_proto=icmp and dl_type=ip, and packets do
match this rule but still statistics are displayed as zero.


2. Even if i use following definition
def aggregate_timer(self, dp):
                flow = ofp_match()
                flow.wildcards=0xffff
                self.ctxt.send_aggregate_stats_request(dp, flow, 0xff)
                self.post_callback(MONITOR_TABLE_PERIOD, lambda :
self.aggregate_timer(dp)
now in this case statistics should be displayed for all rules but again the
aggregrate statistics displayed are zero.
Aggregate stats in from datapath 2c:27:d7:1d:08:7d
packet_count-- 0
flow_count-- 0
byte_count-- 0

Please let me know if am missing something.

regards
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to