@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)
CentralizedSwitchSchedulerscheduleCentralizedSwitch in interface CentralizedSwitchSchedulerrouter - the external router.public boolean updateCentralizedSwitch(Routers oldRouter, Routers newRouter)
CentralizedSwitchSchedulerupdateCentralizedSwitch in interface CentralizedSwitchScheduleroldRouter - the existing external router.newRouter - the new external router.public boolean releaseCentralizedSwitch(Routers router)
CentralizedSwitchSchedulerreleaseCentralizedSwitch in interface CentralizedSwitchSchedulerrouter - the external router.public boolean addSwitch(BigInteger dpnId)
CentralizedSwitchScheduleraddSwitch in interface CentralizedSwitchSchedulerdpnId - the switch id.public boolean removeSwitch(BigInteger dpnId)
CentralizedSwitchSchedulerremoveSwitch in interface CentralizedSwitchSchedulerdpnId - the switch id.public BigInteger getCentralizedSwitch(String routerName)
CentralizedSwitchSchedulergetCentralizedSwitch in interface CentralizedSwitchSchedulerrouterName - the router name.public boolean isSwitchConnectedToExternal(BigInteger dpnId, String providerNet)
CentralizedSwitchSchedulerisSwitchConnectedToExternal in interface CentralizedSwitchSchedulerdpnId - 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.