Class OvsdbTepAddConfigHelper
- java.lang.Object
-
- org.opendaylight.genius.itm.confighelpers.OvsdbTepAddConfigHelper
-
public final class OvsdbTepAddConfigHelper 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>>
addTepReceivedFromOvsdb(java.lang.String tepIp, java.lang.String strDpnId, java.lang.String tzName, boolean ofTunnel, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ManagedNewTransactionRunner txRunner)
Adds the TEP into ITM configuration/operational Datastore in one of the following cases.protected static void
addUnknownTzTepIntoTepsNotHosted(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 dpid, boolean ofTunnel, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, TypedWriteTransaction<Datastore.Operational> tx)
Adds the TEP into Vtep list in the subnet list in the transport zone list from ITM operational Datastore by merge operation with write transaction.static void
addVtepInITMConfigDS(java.util.List<Vteps> updatedVtepList, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIpAddress, java.lang.String tzName, org.opendaylight.yangtools.yang.common.Uint64 dpid, boolean ofTunnel, TypedWriteTransaction<Datastore.Configuration> tx)
Adds the TEP into Vtep list in the subnet list in the transport zone list from ITM configuration Datastore by merge operation with write transaction.protected static void
addVtepIntoTepsNotHosted(java.util.List<UnknownVteps> updatedVtepList, java.lang.String tzName, TypedWriteTransaction<Datastore.Operational> tx)
Adds the TEP into Unknown Vtep list under the transport zone in the TepsNotHosted list from ITM operational Datastore by merge operation with write transaction.
-
-
-
Method Detail
-
addTepReceivedFromOvsdb
public static java.util.List<com.google.common.util.concurrent.ListenableFuture<java.lang.Void>> addTepReceivedFromOvsdb(java.lang.String tepIp, java.lang.String strDpnId, java.lang.String tzName, boolean ofTunnel, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, ManagedNewTransactionRunner txRunner)
Adds the TEP into ITM configuration/operational Datastore in one of the following cases. 1) default transport zone 2) Configured transport zone 3) Unhosted transport zone- Parameters:
tepIp
- TEP-IP address in stringstrDpnId
- bridge datapath ID in stringtzName
- transport zone name in stringofTunnel
- boolean flag for TEP to enable/disable of-tunnel feature on itdataBroker
- data broker handle to perform operations on config/operational datastoretxRunner
- ManagedTransactionRunner object
-
addVtepInITMConfigDS
public static void addVtepInITMConfigDS(java.util.List<Vteps> updatedVtepList, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress tepIpAddress, java.lang.String tzName, org.opendaylight.yangtools.yang.common.Uint64 dpid, boolean ofTunnel, TypedWriteTransaction<Datastore.Configuration> tx)
Adds the TEP into Vtep list in the subnet list in the transport zone list from ITM configuration Datastore by merge operation with write transaction.- Parameters:
updatedVtepList
- updated Vteps list object which will have new TEP for additiontepIpAddress
- TEP IP address in IpAddress objecttzName
- transport zone name in stringdpid
- bridge datapath IDofTunnel
- boolean flag for TEP to enable/disable of-tunnel feature on ittx
- TypedWriteTransaction object
-
addUnknownTzTepIntoTepsNotHosted
protected static void addUnknownTzTepIntoTepsNotHosted(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 dpid, boolean ofTunnel, org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, TypedWriteTransaction<Datastore.Operational> tx)
Adds the TEP into Vtep list in the subnet list in the transport zone list from ITM operational Datastore by merge operation with write transaction.- Parameters:
tzName
- transport zone name in stringtepIpAddress
- TEP IP address in IpAddress objectdpid
- bridge datapath IDofTunnel
- boolean flag for TEP to enable/disable of-tunnel feature on itdataBroker
- data broker handle to perform operations on operational datastoretx
- TypedWriteTransaction object
-
addVtepIntoTepsNotHosted
protected static void addVtepIntoTepsNotHosted(java.util.List<UnknownVteps> updatedVtepList, java.lang.String tzName, TypedWriteTransaction<Datastore.Operational> tx)
Adds the TEP into Unknown Vtep list under the transport zone in the TepsNotHosted list from ITM operational Datastore by merge operation with write transaction.- Parameters:
updatedVtepList
- updated UnknownVteps list object which will have new TEP for addition into TepsNotHostedtzName
- transport zone name in stringtx
- TypedWriteTransaction object
-
-