Class SNATDefaultRouteProgrammer
- java.lang.Object
-
- org.opendaylight.netvirt.natservice.internal.SNATDefaultRouteProgrammer
-
@Singleton public class SNATDefaultRouteProgrammer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description SNATDefaultRouteProgrammer(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, ExternalNetworkGroupInstaller extNetGroupInstaller, NatServiceCounters natServiceCounters, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, NatSwitchCache natSwitchCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrDelDefaultFibRouteToSNATForSubnet(Subnets subnet, java.lang.String networkId, int flowAction, org.opendaylight.yangtools.yang.common.Uint32 vpnId)
void
addOrDelDefaultFibRouteToSNATForSubnetInDpn(Subnets subnet, java.lang.String networkId, int flowAction, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.yangtools.yang.common.Uint64 dpn)
void
installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String subnetId)
void
installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
void
installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
void
removeDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
void
removeDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
-
-
-
Constructor Detail
-
SNATDefaultRouteProgrammer
@Inject public SNATDefaultRouteProgrammer(org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager mdsalManager, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.IdManagerService idManager, ExternalNetworkGroupInstaller extNetGroupInstaller, NatServiceCounters natServiceCounters, org.opendaylight.infrautils.jobcoordinator.JobCoordinator jobCoordinator, NatSwitchCache natSwitchCache)
-
-
Method Detail
-
installDefNATRouteInDPN
public void installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
-
installDefNATRouteInDPN
public void installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx)
-
installDefNATRouteInDPN
public void installDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, java.lang.String subnetId)
-
removeDefNATRouteInDPN
public void removeDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
removeDefNATRouteInDPN
public void removeDefNATRouteInDPN(org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.yangtools.yang.common.Uint32 bgpVpnId, org.opendaylight.yangtools.yang.common.Uint32 routerId, org.opendaylight.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> confTx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
addOrDelDefaultFibRouteToSNATForSubnet
public void addOrDelDefaultFibRouteToSNATForSubnet(Subnets subnet, java.lang.String networkId, int flowAction, org.opendaylight.yangtools.yang.common.Uint32 vpnId)
-
addOrDelDefaultFibRouteToSNATForSubnetInDpn
public void addOrDelDefaultFibRouteToSNATForSubnetInDpn(Subnets subnet, java.lang.String networkId, int flowAction, org.opendaylight.yangtools.yang.common.Uint32 vpnId, org.opendaylight.yangtools.yang.common.Uint64 dpn)
-
-