Re: [pox-dev] Fetch switch statistics

2015-05-10 Thread Peter Peresini
Fetching aggregate statistics would be better. I believe your problem of negative count happens when some flows expire and thus are removed from the table. Other option would be to remember both old and new flow stats and count only ones which did not expire inbetween Peter (sent from android devi

Re: [pox-dev] cannot convert argument to integer in pack self.max_len

2015-05-10 Thread Murphy McCauley
In Python, "logical lines of code" can span multiple physical lines. When printing tracebacks, it only prints the final physical line of the logical line of code in question. So while you're seeing line 1560 and only seeing the "self.max_len", the actual problem may well be on the line before

[pox-dev] cannot convert argument to integer in pack self.max_len

2015-05-10 Thread 博威张
Hi, I'm doing something based on *l2_multi* and I got such problems : Traceback (most recent call last): File "/home/seuzbw/pox/pox/lib/revent/revent.py", line 231, in raiseEventNoErrors return self.raiseEvent(event, *args, **kw) File "/home/seuzbw/pox/pox/lib/revent/revent.py", line 278,

[pox-dev] Fetch switch statistics

2015-05-10 Thread 博威张
Hi, I'm trying to fetch some statistics such as bytes_count of a certain switch. I use *ofp_flow_stats_request()* to send the request and handle it this way: for f in event.stats : bytes += f.byte_count In order to get the byte_count of a certain interval, I send it periodically and use *current