Search in sources :

Example 6 with InputService

use of org.openkilda.floodlight.service.of.InputService in project open-kilda by telstra.

the class ConnectedDevicesService method setup.

@Override
public void setup(FloodlightModuleContext context) {
    logger.info("Stating {}", ConnectedDevicesService.class.getCanonicalName());
    KafkaChannel kafkaChannel = context.getServiceImpl(KafkaUtilityService.class).getKafkaChannel();
    logger.info("region: {}", kafkaChannel.getRegion());
    region = kafkaChannel.getRegion();
    producerService = context.getServiceImpl(IKafkaProducerService.class);
    topic = kafkaChannel.getConnectedDevicesTopic();
    InputService inputService = context.getServiceImpl(InputService.class);
    inputService.addTranslator(OFType.PACKET_IN, this);
}
Also used : InputService(org.openkilda.floodlight.service.of.InputService) IKafkaProducerService(org.openkilda.floodlight.service.kafka.IKafkaProducerService) KafkaChannel(org.openkilda.floodlight.KafkaChannel) KafkaUtilityService(org.openkilda.floodlight.service.kafka.KafkaUtilityService)

Aggregations

InputService (org.openkilda.floodlight.service.of.InputService)6 KafkaChannel (org.openkilda.floodlight.KafkaChannel)2 KafkaUtilityService (org.openkilda.floodlight.service.kafka.KafkaUtilityService)2 PingService (org.openkilda.floodlight.service.ping.PingService)2 Ping (org.openkilda.messaging.model.Ping)2 FloodlightContext (net.floodlightcontroller.core.FloodlightContext)1 IOFSwitchService (net.floodlightcontroller.core.internal.IOFSwitchService)1 FloodlightModuleException (net.floodlightcontroller.core.module.FloodlightModuleException)1 Ethernet (net.floodlightcontroller.packet.Ethernet)1 IPacket (net.floodlightcontroller.packet.IPacket)1 IRestApiService (net.floodlightcontroller.restserver.IRestApiService)1 Before (org.junit.Before)1 Test (org.junit.Test)1 KildaCore (org.openkilda.floodlight.KildaCore)1 KildaCoreConfig (org.openkilda.floodlight.KildaCoreConfig)1 InvalidSignatureConfigurationException (org.openkilda.floodlight.error.InvalidSignatureConfigurationException)1 OfInput (org.openkilda.floodlight.model.OfInput)1 PingData (org.openkilda.floodlight.model.PingData)1 PathVerificationService (org.openkilda.floodlight.pathverification.PathVerificationService)1 PathVerificationServiceWebRoutable (org.openkilda.floodlight.pathverification.web.PathVerificationServiceWebRoutable)1