Class DhcpAllocationPoolManager
- java.lang.Object
-
- org.opendaylight.netvirt.dhcpservice.DhcpAllocationPoolManager
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.util.EventListener
@Singleton public class DhcpAllocationPoolManager extends java.lang.Object implements java.lang.AutoCloseable, java.util.EventListener
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
createIdAllocationPool(java.lang.String networkId, AllocationPool pool)
@Nullable AllocationPool
getAllocationPoolByNetwork(java.lang.String networkId)
@NonNull java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,java.util.List<java.lang.String>>
getElanDpnInterfacesByName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String elanInstanceName)
@Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress
getIpAllocation(java.lang.String networkId, AllocationPool pool, java.lang.String macAddress)
@Nullable java.lang.String
getNetworkByPort(java.lang.String portUuid)
void
init()
protected void
releaseIdAllocationPool(java.lang.String networkId, AllocationPool pool)
void
releaseIpAllocation(java.lang.String networkId, AllocationPool pool, java.lang.String macAddress)
-
-
-
Constructor Detail
-
DhcpAllocationPoolManager
@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)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
close
@PreDestroy public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
getIpAllocation
public @Nullable org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIpAllocation(java.lang.String networkId, AllocationPool pool, java.lang.String macAddress)
-
releaseIpAllocation
public void releaseIpAllocation(java.lang.String networkId, AllocationPool pool, java.lang.String macAddress)
-
getAllocationPoolByNetwork
public @Nullable AllocationPool getAllocationPoolByNetwork(java.lang.String networkId) throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
- Throws:
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
-
getElanDpnInterfacesByName
public @NonNull java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,java.util.List<java.lang.String>> getElanDpnInterfacesByName(org.opendaylight.controller.md.sal.binding.api.DataBroker broker, java.lang.String elanInstanceName)
-
getNetworkByPort
public @Nullable java.lang.String getNetworkByPort(java.lang.String portUuid) throws org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
- Throws:
org.opendaylight.controller.md.sal.common.api.data.ReadFailedException
-
createIdAllocationPool
protected void createIdAllocationPool(java.lang.String networkId, AllocationPool pool)
-
releaseIdAllocationPool
protected void releaseIdAllocationPool(java.lang.String networkId, AllocationPool pool)
-
-