} else if (msg instanceof OFCommandSendSwConfigRequest) {
tcpChannel.tell(TcpMessage.write(ByteString.fromArray(provider.encodeSwitchConfigRequest())), getSelf());
} else if (msg instanceof TellToSendFlowMod) {
System.out.println("[OF-INFO]: Send Flow Mod");
OFMessageFlowModRef flowModRef = provider.buildFlowModMsg();
flowModRef.addField("priority", "32000");
flowModRef.addMatchInPort(swRef.getDpid().toString().substring(0, 3));
OFStructureInstructionRef instruction = provider.buildInstructionApplyActions();
instruction.addActionOutput("2");
flowModRef.addInstruction("apply_actions", instruction);
instruction = provider.buildInstructionGotoTable();
flowModRef.addInstruction("goto_table", instruction);
tcpChannel.tell(TcpMessage.write(ByteString.fromArray(provider.encodeFlowMod(flowModRef))), getSelf());
}
}