diff --git a/scripts/of_controller_v4.erl b/scripts/of_controller_v4.erl index 00f2c39..e1667c6 100644 --- a/scripts/of_controller_v4.erl +++ b/scripts/of_controller_v4.erl @@ -997,7 +997,7 @@ flow_mod_output_to_port(InPort, OutPort, MaxLen) -> name = in_port, value = <>}, Match = #ofp_match{fields = [MatchField]}, - Action = case InPort =:= controller of + Action = case OutPort =:= controller of true -> #ofp_action_output{port = OutPort, max_len = MaxLen}; false ->