On Tue, 09 Jun 2015 09:55:07 +0900 Minoru TAKAHASHI <[email protected]> wrote:
> After applying this patch, > ofctl_v1_0:get_flow_stats outputs only match fields that no wildcard is set. > Execution example is as follows. > > before applying this patch: > > $curl http://127.0.0.1:8080/stats/flow/1 > { > "1": [ > { > "actions": [ > "OUTPUT:1" > ], > "byte_count": 238, > "cookie": 0, > "duration_nsec": 585000000, > "duration_sec": 154, > "hard_timeout": 0, > "idle_timeout": 0, > "match": { > "dl_dst": "00:00:00:00:00:01", > "dl_src": "00:00:00:00:00:00", > "dl_type": 0, > "dl_vlan": 0, > "dl_vlan_pcp": 0, > "in_port": 2, > "nw_dst": "0.0.0.0", > "nw_proto": 0, > "nw_src": "0.0.0.0", > "nw_tos": 0, > "tp_dst": 0, > "tp_src": 0 > }, > "packet_count": 3, > "priority": 32768, > "table_id": 0 > } > ] > } > > after applying this patch: > > $curl http://127.0.0.1:8080/stats/flow/1 > { > "1": [ > { > "actions": [ > "OUTPUT:1" > ], > "byte_count": 238, > "cookie": 0, > "duration_nsec": 593000000, > "duration_sec": 12, > "hard_timeout": 0, > "idle_timeout": 0, > "match": { > "dl_dst": "00:00:00:00:00:01", > "in_port": 2 > }, > "packet_count": 3, > "priority": 32768, > "table_id": 0 > } > ] > } > > Reported-by:Liu, Weijie <[email protected]> > Signed-off-by: Minoru TAKAHASHI <[email protected]> > --- > ryu/lib/ofctl_v1_0.py | 52 +++++++++++++++++++++++------- > ryu/tests/unit/lib/test_ofctl_v1_0.py | 60 > +++++++++++++++++++++++++++++++++++ > 2 files changed, 100 insertions(+), 12 deletions(-) > create mode 100644 ryu/tests/unit/lib/test_ofctl_v1_0.py Applied, thanks! ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
