packet_data_generator: Add ofp_group_stats messages for OF1.2

Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
IWASE Yusuke 2015-12-22 11:49:14 +09:00 committed by FUJITA Tomonori
parent 6e4b2b67a3
commit d0c9ddd659

View File

@ -8734,6 +8734,16 @@ x() ->
hard_timeout = 0,priority = 123,buffer_id = 65535,
out_port = any,out_group = any,flags = [],
match = #ofp_match{fields = AllFields},
instructions = []}
instructions = []},
#ofp_group_stats_request{flags = [],group_id = all},
#ofp_group_stats_reply{
flags = [],
stats =
[#ofp_group_stats{
group_id = 1,ref_count = 2,packet_count = 123,
byte_count = 12345,
bucket_stats =
[#ofp_bucket_counter{
packet_count = 234,byte_count = 2345}]}]}
],
lists:foldl(fun x:do/2, {3, 0}, List).