@Singleton public class DhcpAllocationPoolManager extends Object implements AutoCloseable, EventListener
Constructor and Description |
---|
DhcpAllocationPoolManager(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker,
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager,
DhcpserviceConfig config,
org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
createIdAllocationPool(String networkId,
AllocationPool pool) |
AllocationPool |
getAllocationPoolByNetwork(String networkId) |
AllocationPool |
getAllocationPoolByPort(String portUuid) |
Map<BigInteger,List<String>> |
getElanDpnInterfacesByName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker,
String elanInstanceName) |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIpAllocation(String networkId,
AllocationPool pool,
String macAddress) |
String |
getNetworkByPort(String portUuid) |
void |
init() |
protected void |
releaseIdAllocationPool(String networkId,
AllocationPool pool) |
void |
releaseIpAllocation(String networkId,
AllocationPool pool,
String macAddress) |
@Inject public DhcpAllocationPoolManager(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, DhcpserviceConfig config, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator)
@PostConstruct public void init()
@PreDestroy public void close()
close
in interface AutoCloseable
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAllocation(String networkId, AllocationPool pool, String macAddress)
public void releaseIpAllocation(String networkId, AllocationPool pool, String macAddress)
public AllocationPool getAllocationPoolByNetwork(String networkId)
public Map<BigInteger,List<String>> getElanDpnInterfacesByName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, String elanInstanceName)
public AllocationPool getAllocationPoolByPort(String portUuid)
protected void createIdAllocationPool(String networkId, AllocationPool pool)
protected void releaseIdAllocationPool(String networkId, AllocationPool pool)
Copyright © 2019 OpenDaylight. All rights reserved.