Search in sources :

Example 1 with PathVerificationServiceWebRoutable

use of org.openkilda.floodlight.pathverification.web.PathVerificationServiceWebRoutable in project open-kilda by telstra.

the class PathVerificationService method startUp.

@Override
public void startUp(FloodlightModuleContext context) throws FloodlightModuleException {
    logger.info("Stating {}", PathVerificationService.class.getCanonicalName());
    KafkaChannel kafkaChannel = context.getServiceImpl(KafkaUtilityService.class).getKafkaChannel();
    logger.info("region: {}", kafkaChannel.getRegion());
    topoDiscoTopic = context.getServiceImpl(KafkaUtilityService.class).getKafkaChannel().getTopoDiscoTopic();
    islLatencyTopic = context.getServiceImpl(KafkaUtilityService.class).getKafkaChannel().getIslLatencyTopic();
    region = context.getServiceImpl(KafkaUtilityService.class).getKafkaChannel().getRegion();
    InputService inputService = context.getServiceImpl(InputService.class);
    inputService.addTranslator(OFType.PACKET_IN, this);
    context.getServiceImpl(PingService.class).setup(context);
    context.getServiceImpl(IRestApiService.class).addRestletRoutable(new PathVerificationServiceWebRoutable());
}
Also used : IRestApiService(net.floodlightcontroller.restserver.IRestApiService) InputService(org.openkilda.floodlight.service.of.InputService) PingService(org.openkilda.floodlight.service.ping.PingService) KafkaChannel(org.openkilda.floodlight.KafkaChannel) KafkaUtilityService(org.openkilda.floodlight.service.kafka.KafkaUtilityService) PathVerificationServiceWebRoutable(org.openkilda.floodlight.pathverification.web.PathVerificationServiceWebRoutable)

Aggregations

IRestApiService (net.floodlightcontroller.restserver.IRestApiService)1 KafkaChannel (org.openkilda.floodlight.KafkaChannel)1 PathVerificationServiceWebRoutable (org.openkilda.floodlight.pathverification.web.PathVerificationServiceWebRoutable)1 KafkaUtilityService (org.openkilda.floodlight.service.kafka.KafkaUtilityService)1 InputService (org.openkilda.floodlight.service.of.InputService)1 PingService (org.openkilda.floodlight.service.ping.PingService)1