Class 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.mdsal.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.mdsal.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.Map<UnknownVtepsKey,​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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.mdsal.binding.api.DataBroker dataBroker,
                                                                                                                                 ManagedNewTransactionRunner txRunner)
                                                                                                                          throws java.lang.Exception
        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 string
        strDpnId - bridge datapath ID in string
        tzName - transport zone name in string
        ofTunnel - boolean flag for TEP to enable/disable of-tunnel feature on it
        dataBroker - data broker handle to perform operations on config/operational datastore
        txRunner - ManagedTransactionRunner object
        Throws:
        java.lang.Exception
      • 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 addition
        tepIpAddress - TEP IP address in IpAddress object
        tzName - transport zone name in string
        dpid - bridge datapath ID
        ofTunnel - boolean flag for TEP to enable/disable of-tunnel feature on it
        tx - 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.mdsal.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 string
        tepIpAddress - TEP IP address in IpAddress object
        dpid - bridge datapath ID
        ofTunnel - boolean flag for TEP to enable/disable of-tunnel feature on it
        dataBroker - data broker handle to perform operations on operational datastore
        tx - TypedWriteTransaction object
      • addVtepIntoTepsNotHosted

        protected static void addVtepIntoTepsNotHosted​(java.util.Map<UnknownVtepsKey,​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 TepsNotHosted
        tzName - transport zone name in string
        tx - TypedWriteTransaction object