Search in sources :

Example 1 with SwitchManagerConfig

use of org.openkilda.floodlight.switchmanager.SwitchManagerConfig in project open-kilda by telstra.

the class MeterCommand method setup.

@Override
protected void setup(FloodlightModuleContext moduleContext) throws Exception {
    super.setup(moduleContext);
    FloodlightModuleConfigurationProvider provider = FloodlightModuleConfigurationProvider.of(moduleContext, SwitchManager.class);
    switchManagerConfig = provider.getConfiguration(SwitchManagerConfig.class);
    FeatureDetectorService featuresDetector = moduleContext.getServiceImpl(FeatureDetectorService.class);
    switchFeatures = featuresDetector.detectSwitch(getSw());
}
Also used : FloodlightModuleConfigurationProvider(org.openkilda.floodlight.config.provider.FloodlightModuleConfigurationProvider) SwitchManagerConfig(org.openkilda.floodlight.switchmanager.SwitchManagerConfig) FeatureDetectorService(org.openkilda.floodlight.service.FeatureDetectorService)

Example 2 with SwitchManagerConfig

use of org.openkilda.floodlight.switchmanager.SwitchManagerConfig in project open-kilda by telstra.

the class AbstractMeterInstall method makeMeterBands.

List<OFMeterBand> makeMeterBands() {
    SwitchManagerConfig switchManagerConfig = getSwitchManagerConfig();
    long burstSize = Meter.calculateBurstSize(meterConfig.getBandwidth(), switchManagerConfig.getFlowMeterMinBurstSizeInKbits(), switchManagerConfig.getFlowMeterBurstCoefficient(), getSw().getSwitchDescription().getManufacturerDescription(), getSw().getSwitchDescription().getSoftwareDescription());
    return makeMeterBands(burstSize);
}
Also used : SwitchManagerConfig(org.openkilda.floodlight.switchmanager.SwitchManagerConfig)

Example 3 with SwitchManagerConfig

use of org.openkilda.floodlight.switchmanager.SwitchManagerConfig in project open-kilda by telstra.

the class GroupCommand method setup.

@Override
protected void setup(FloodlightModuleContext moduleContext) throws Exception {
    super.setup(moduleContext);
    FloodlightModuleConfigurationProvider provider = FloodlightModuleConfigurationProvider.of(moduleContext, SwitchManager.class);
    switchManagerConfig = provider.getConfiguration(SwitchManagerConfig.class);
    FeatureDetectorService featuresDetector = moduleContext.getServiceImpl(FeatureDetectorService.class);
    switchFeatures = featuresDetector.detectSwitch(getSw());
}
Also used : FloodlightModuleConfigurationProvider(org.openkilda.floodlight.config.provider.FloodlightModuleConfigurationProvider) SwitchManagerConfig(org.openkilda.floodlight.switchmanager.SwitchManagerConfig) FeatureDetectorService(org.openkilda.floodlight.service.FeatureDetectorService)

Aggregations

SwitchManagerConfig (org.openkilda.floodlight.switchmanager.SwitchManagerConfig)3 FloodlightModuleConfigurationProvider (org.openkilda.floodlight.config.provider.FloodlightModuleConfigurationProvider)2 FeatureDetectorService (org.openkilda.floodlight.service.FeatureDetectorService)2