Class 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.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, DhcpserviceConfig config, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator)  
    • Constructor Detail

      • DhcpAllocationPoolManager

        @Inject
        public DhcpAllocationPoolManager​(org.opendaylight.mdsal.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 interface java.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 java.util.concurrent.ExecutionException,
                                                                   java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • getElanDpnInterfacesByName

        public @NonNull java.util.Map<org.opendaylight.yangtools.yang.common.Uint64,​java.util.List<java.lang.String>> getElanDpnInterfacesByName​(org.opendaylight.mdsal.binding.api.DataBroker broker,
                                                                                                                                                       java.lang.String elanInstanceName)
      • getNetworkByPort

        public @Nullable java.lang.String getNetworkByPort​(java.lang.String portUuid)
                                                    throws java.util.concurrent.ExecutionException,
                                                           java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • createIdAllocationPool

        protected void createIdAllocationPool​(java.lang.String networkId,
                                              AllocationPool pool)
      • releaseIdAllocationPool

        protected void releaseIdAllocationPool​(java.lang.String networkId,
                                               AllocationPool pool)