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);
}
Aggregations