@Singleton public class WeightedCentralizedSwitchScheduler extends Object implements CentralizedSwitchScheduler
Constructor and Description |
---|
WeightedCentralizedSwitchScheduler(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManager,
IVpnFootprintService vpnFootprintService) |
Modifier and Type | Method and Description |
---|---|
boolean |
addSwitch(BigInteger dpnId)
Adds a switch to the scheduler pool.
|
BigInteger |
getCentralizedSwitch(String routerName)
Retrieves the centralized switch scheduled for the router.
|
static List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> |
getUpdatedSubnetIds(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> updatedSubnetIds,
List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> currentSubnetIds) |
boolean |
isSwitchConnectedToExternal(BigInteger dpnId,
String providerNet)
Check whether the switch has external bridge mappings.
|
boolean |
releaseCentralizedSwitch(Routers router)
Releases the centralized switch scheduled for the router.
|
boolean |
removeSwitch(BigInteger dpnId)
Removes a switch from the scheduler pool.
|
boolean |
scheduleCentralizedSwitch(Routers router)
Schedule the centralized switch for the router.
|
boolean |
updateCentralizedSwitch(Routers oldRouter,
Routers newRouter)
Update the centralized switch scheduled for the router.
|
@Inject public WeightedCentralizedSwitchScheduler(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rpcs.rev160406.OdlInterfaceRpcService interfaceManager, IVpnFootprintService vpnFootprintService)
public boolean scheduleCentralizedSwitch(Routers router)
CentralizedSwitchScheduler
scheduleCentralizedSwitch
in interface CentralizedSwitchScheduler
router
- the external router.public boolean updateCentralizedSwitch(Routers oldRouter, Routers newRouter)
CentralizedSwitchScheduler
updateCentralizedSwitch
in interface CentralizedSwitchScheduler
oldRouter
- the existing external router.newRouter
- the new external router.public boolean releaseCentralizedSwitch(Routers router)
CentralizedSwitchScheduler
releaseCentralizedSwitch
in interface CentralizedSwitchScheduler
router
- the external router.public boolean addSwitch(BigInteger dpnId)
CentralizedSwitchScheduler
addSwitch
in interface CentralizedSwitchScheduler
dpnId
- the switch id.public boolean removeSwitch(BigInteger dpnId)
CentralizedSwitchScheduler
removeSwitch
in interface CentralizedSwitchScheduler
dpnId
- the switch id.public BigInteger getCentralizedSwitch(String routerName)
CentralizedSwitchScheduler
getCentralizedSwitch
in interface CentralizedSwitchScheduler
routerName
- the router name.public boolean isSwitchConnectedToExternal(BigInteger dpnId, String providerNet)
CentralizedSwitchScheduler
isSwitchConnectedToExternal
in interface CentralizedSwitchScheduler
dpnId
- the switch id.providerNet
- the provider network.public static List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> getUpdatedSubnetIds(List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> updatedSubnetIds, List<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid> currentSubnetIds)
Copyright © 2019 OpenDaylight. All rights reserved.