From d27be429bca4a1de65fc35cbf176f97690037562 Mon Sep 17 00:00:00 2001 From: Simon Horman Date: Mon, 24 Feb 2014 13:07:12 +0900 Subject: [PATCH] packet_data_generator: of14: Add role status message Signed-off-by: Simon Horman Signed-off-by: FUJITA Tomonori --- ryu/tests/packet_data_generator/src/x5.erl | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ryu/tests/packet_data_generator/src/x5.erl b/ryu/tests/packet_data_generator/src/x5.erl index 8006a82a..e648d78b 100644 --- a/ryu/tests/packet_data_generator/src/x5.erl +++ b/ryu/tests/packet_data_generator/src/x5.erl @@ -2655,6 +2655,23 @@ x() -> experimenter = 101, exp_type = 2, data = <<1:32,2:32>>}], - queue_id = 1}]} + queue_id = 1}]}, + #ofp_role_status{ + role = master, + reason = master_request, + generation_id=7, + properties = + [#ofp_role_prop_experimenter{ + experimenter = 101, + exp_type = 0, + data = <<>>}, + #ofp_role_prop_experimenter{ + experimenter = 101, + exp_type = 1, + data = <<1:32>>}, + #ofp_role_prop_experimenter{ + experimenter = 101, + exp_type = 2, + data = <<1:32,2:32>>}]} ], lists:foldl(fun x:do/2, {5, 0}, List).