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