Class DhcpManager
- java.lang.Object
-
- org.opendaylight.netvirt.dhcpservice.DhcpManager
-
@Singleton public class DhcpManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DhcpManager(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalApiManager, DhcpserviceConfig config, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, DhcpExternalTunnelManager dhcpExternalTunnelManager, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, IElanService ielanService, DhcpPortCache dhcpPortCache, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, DhcpServiceCounters dhcpServiceCounters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.lang.String
getDhcpDefDomain()
int
getDhcpLeaseTime()
int
getDhcpRebindingTime()
int
getDhcpRenewalTime()
@Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port
getNeutronPort(java.lang.String name)
@Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet
getNeutronSubnet(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.port.attributes.FixedIps> fixedIps)
@Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet
getNeutronSubnet(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port)
void
init()
void
installDhcpEntries(@Nullable org.opendaylight.yangtools.yang.common.Uint64 dpnId, @Nullable java.lang.String vmMacAddress, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx)
java.lang.String
setDefaultDomain(java.lang.String defaultDomain)
int
setLeaseDuration(int leaseDuration)
void
setupDefaultDhcpFlows(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yangtools.yang.common.Uint64 dpId)
void
unInstallDhcpEntries(@Nullable org.opendaylight.yangtools.yang.common.Uint64 dpId, @Nullable java.lang.String vmMacAddress, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx)
-
-
-
Constructor Detail
-
DhcpManager
@Inject public DhcpManager(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalApiManager, DhcpserviceConfig config, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, DhcpExternalTunnelManager dhcpExternalTunnelManager, org.opendaylight.genius.interfacemanager.interfaces.IInterfaceManager interfaceManager, @Named("elanService") IElanService ielanService, DhcpPortCache dhcpPortCache, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.itm.rpcs.rev160406.ItmRpcService itmRpcService, DhcpServiceCounters dhcpServiceCounters)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
close
@PreDestroy public void close()
-
setLeaseDuration
public int setLeaseDuration(int leaseDuration)
-
setDefaultDomain
public java.lang.String setDefaultDomain(java.lang.String defaultDomain)
-
getDhcpLeaseTime
public int getDhcpLeaseTime()
-
getDhcpRenewalTime
public int getDhcpRenewalTime()
-
getDhcpRebindingTime
public int getDhcpRebindingTime()
-
getDhcpDefDomain
public java.lang.String getDhcpDefDomain()
-
getNeutronSubnet
public @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet getNeutronSubnet(org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port port)
-
getNeutronSubnet
public @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.subnets.rev150712.subnets.attributes.subnets.Subnet getNeutronSubnet(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.port.attributes.FixedIps> fixedIps)
-
getNeutronPort
public @Nullable org.opendaylight.yang.gen.v1.urn.opendaylight.neutron.ports.rev150712.ports.attributes.ports.Port getNeutronPort(java.lang.String name)
-
installDhcpEntries
public void installDhcpEntries(@Nullable org.opendaylight.yangtools.yang.common.Uint64 dpnId, @Nullable java.lang.String vmMacAddress, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
unInstallDhcpEntries
public void unInstallDhcpEntries(@Nullable org.opendaylight.yangtools.yang.common.Uint64 dpId, @Nullable java.lang.String vmMacAddress, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
setupDefaultDhcpFlows
public void setupDefaultDhcpFlows(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx, org.opendaylight.yangtools.yang.common.Uint64 dpId)
-
-