Class OvsdbTepRemoveConfigHelper
- java.lang.Object
-
- org.opendaylight.genius.itm.confighelpers.OvsdbTepRemoveConfigHelper
-
public final class OvsdbTepRemoveConfigHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>>
removeTepReceivedFromOvsdb(java.lang.String tepIp, java.lang.String strDpnId, java.lang.String tzName, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ManagedNewTransactionRunner txRunner)
Removes the TEP from ITM configuration/operational Datastore in one of the following cases.static void
removeUnknownTzTepFromTepsNotHosted(java.lang.String tzName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIpAddress, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, TypedWriteTransaction<Datastore.Operational> tx)
Removes the TEP from the not-hosted transport zone in the TepsNotHosted list from ITM Operational Datastore.
-
-
-
Method Detail
-
removeTepReceivedFromOvsdb
public static java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> removeTepReceivedFromOvsdb(java.lang.String tepIp, java.lang.String strDpnId, java.lang.String tzName, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, ManagedNewTransactionRunner txRunner)
Removes the TEP from ITM configuration/operational Datastore in one of the following cases. 1) default transport zone 2) Configured transport zone 3) Unhosted transport zone Function checks for above three cases and calls other sub-function to remove the TEP- Parameters:
tepIp
- TEP-IP address in stringstrDpnId
- bridge datapath ID in stringtzName
- transport zone name in stringdataBroker
- data broker handle to perform operations on config/operational datastoretxRunner
- ManagedNewTransactionRunner object
-
removeUnknownTzTepFromTepsNotHosted
public static void removeUnknownTzTepFromTepsNotHosted(java.lang.String tzName, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIpAddress, org.opendaylight.yangtools.yang.common.Uint64 dpnId, org.opendaylight.mdsal.binding.api.DataBroker dataBroker, TypedWriteTransaction<Datastore.Operational> tx)
Removes the TEP from the not-hosted transport zone in the TepsNotHosted list from ITM Operational Datastore.- Parameters:
tzName
- transport zone name in stringtepIpAddress
- TEP IP address in IpAddress objectdpnId
- bridge datapath IDdataBroker
- data broker handle to perform operations on operational datastoretx
- TypedWriteTransaction object
-
-