dump table_id and match in flowstats

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2013-10-14 20:10:57 +09:00
parent 6c10625f55
commit 9282101c43

View File

@ -316,7 +316,10 @@ class RPCApi(app_manager.RyuApp):
flow_sem.release()
if contexts:
stats = {'byte_count': body.byte_count,
'packet_count': body.packet_count}
'packet_count': body.packet_count,
'match': body.match.to_jsondict(),
#'inst': body.instructions,
'table_id': body.table_id}
stats.update(contexts)
stats['timestamp'] = time.strftime("%Y-%m-%dT%H:%M:%S")
STATS.info(stats)