Skip to content

Commit

Permalink
Disabled packet_in messages after flow is installed by the controller
Browse files Browse the repository at this point in the history
  • Loading branch information
konradkaplita committed Jun 12, 2012
1 parent b88b720 commit c127e66
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/of_controller.erl
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ handle(#cstate{parent = Parent, socket = Socket,
Match#ofp_match.oxm_fields),
NewMatch = #ofp_match{oxm_fields = [#ofp_field{field = eth_dst,
value = EthSrc}]},
ApplyActions = #ofp_instruction_apply_actions{
actions = [#ofp_action_output{port = controller}]},
%% ApplyActions = #ofp_instruction_apply_actions{
%% actions = [#ofp_action_output{port = controller}]},
ActionOutput = #ofp_instruction_write_actions{
actions = [#ofp_action_output{port = InPort}]},
case lists:keyfind(EthSrc, 1, FwdTable) of
Expand All @@ -190,7 +190,7 @@ handle(#cstate{parent = Parent, socket = Socket,
FlowMod = message(#ofp_flow_mod{table_id = 0,
command = modify_strict,
match = NewMatch,
instructions = [ApplyActions,
instructions = [%% ApplyActions,
ActionOutput]}),
lager:info("Modifying existing entry: ~p | ~p -> ~p | ~p", [EthSrc, OtherPort,
EthSrc, InPort]),
Expand All @@ -201,7 +201,7 @@ handle(#cstate{parent = Parent, socket = Socket,
FlowMod = message(#ofp_flow_mod{table_id = 0,
command = add,
match = NewMatch,
instructions = [ApplyActions,
instructions = [%% ApplyActions,
ActionOutput]}),
MAC = binary_to_hex(EthSrc),
lager:info("Adding new entry: ~1w | ~18s | ~p",
Expand Down

0 comments on commit c127e66

Please sign in to comment.