use of org.openkilda.floodlight.service.FeatureDetectorService in project open-kilda by telstra.
the class SwitchManager method init.
/**
* {@inheritDoc}
*/
@Override
public void init(FloodlightModuleContext context) throws FloodlightModuleException {
ofSwitchService = context.getServiceImpl(IOFSwitchService.class);
producerService = context.getServiceImpl(IKafkaProducerService.class);
switchTracking = context.getServiceImpl(SwitchTrackingService.class);
featureDetectorService = context.getServiceImpl(FeatureDetectorService.class);
FloodlightModuleConfigurationProvider provider = FloodlightModuleConfigurationProvider.of(context, this);
config = provider.getConfiguration(SwitchManagerConfig.class);
switchFlowFactory = context.getServiceImpl(SwitchFlowFactory.class);
String connectModeProperty = config.getConnectMode();
try {
connectMode = ConnectModeRequest.Mode.valueOf(connectModeProperty);
} catch (Exception e) {
logger.error("CONFIG EXCEPTION: connect-mode could not be set to {}, defaulting to AUTO", connectModeProperty);
connectMode = ConnectModeRequest.Mode.AUTO;
}
}
use of org.openkilda.floodlight.service.FeatureDetectorService in project open-kilda by telstra.
the class FlowSegmentCommand method setup.
@Override
protected void setup(FloodlightModuleContext moduleContext) throws Exception {
super.setup(moduleContext);
FeatureDetectorService featureDetectorService = moduleContext.getServiceImpl(FeatureDetectorService.class);
switchFeatures = featureDetectorService.detectSwitch(getSw());
KildaCore kildaCore = moduleContext.getServiceImpl(KildaCore.class);
kildaCoreConfig = kildaCore.getConfig();
}
use of org.openkilda.floodlight.service.FeatureDetectorService in project open-kilda by telstra.
the class SwitchFlowFactory method setup.
@Override
public void setup(FloodlightModuleContext context) {
ISwitchManager switchManager = context.getServiceImpl(ISwitchManager.class);
config = switchManager.getSwitchManagerConfig();
featureDetectorService = context.getServiceImpl(FeatureDetectorService.class);
kildaCore = context.getServiceImpl(KildaCore.class);
verificationBcastPacketDst = context.getServiceImpl(IPathVerificationService.class).getConfig().getVerificationBcastPacketDst();
}
Aggregations