Search in sources :

Example 1 with SwitchRuleServiceImpl

use of org.openkilda.wfm.topology.switchmanager.service.impl.SwitchRuleServiceImpl 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);
}
Also used : SwitchRuleServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.SwitchRuleServiceImpl) ValidationServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.ValidationServiceImpl) LagPortOperationConfig(org.openkilda.wfm.topology.switchmanager.service.LagPortOperationConfig) CreateLagPortServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.CreateLagPortServiceImpl) SwitchValidateServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.SwitchValidateServiceImpl) SwitchSyncServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.SwitchSyncServiceImpl) DeleteLagPortServiceImpl(org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.DeleteLagPortServiceImpl) RuleManagerImpl(org.openkilda.rulemanager.RuleManagerImpl)

Aggregations

RuleManagerImpl (org.openkilda.rulemanager.RuleManagerImpl)1 LagPortOperationConfig (org.openkilda.wfm.topology.switchmanager.service.LagPortOperationConfig)1 SwitchRuleServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.SwitchRuleServiceImpl)1 ValidationServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.ValidationServiceImpl)1 CreateLagPortServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.CreateLagPortServiceImpl)1 DeleteLagPortServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.DeleteLagPortServiceImpl)1 SwitchSyncServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.SwitchSyncServiceImpl)1 SwitchValidateServiceImpl (org.openkilda.wfm.topology.switchmanager.service.impl.fsmhandlers.SwitchValidateServiceImpl)1