use of org.openkilda.wfm.topology.switchmanager.service.LagPortOperationConfig in project open-kilda by telstra.
the class SwitchManagerHub method init.
@Override
public void init() {
super.init();
validateService = new SwitchValidateServiceImpl(this, persistenceManager, new ValidationServiceImpl(persistenceManager), new RuleManagerImpl(ruleManagerConfig));
syncService = new SwitchSyncServiceImpl(this, persistenceManager, flowResourcesConfig);
switchRuleService = new SwitchRuleServiceImpl(this, persistenceManager.getRepositoryFactory());
LagPortOperationConfig config = new LagPortOperationConfig(persistenceManager.getRepositoryFactory(), persistenceManager.getTransactionManager(), topologyConfig.getBfdPortOffset(), topologyConfig.getBfdPortMaxNumber(), topologyConfig.getLagPortOffset(), topologyConfig.getLagPortMaxNumber(), topologyConfig.getLagPortPoolChunksCount(), topologyConfig.getLagPortPoolCacheSize());
log.info("LAG logical ports service config: {}", config);
createLagPortService = new CreateLagPortServiceImpl(this, config);
deleteLagPortService = new DeleteLagPortServiceImpl(this, config);
}
Aggregations