Class HwvtepHAUtil


  • public final class HwvtepHAUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void buildGlobalConfigForHANode​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath, java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg)
      Build HA Global node from child nodes in config data tress.
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef buildLocatorRef​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid, java.lang.String tepIp)  
      static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.Managers> buildManagersForHANode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg)
      Transform child managers (Source) to HA managers using HA node path.
      static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.Switches> buildSwitchesForHANode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath, java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNode)
      Transform child switch (Source) to HA swicthes using HA node path.
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint> buildTpId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid, java.lang.String tepIp)  
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef convertLocatorRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef src, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)
      Trnaform locator reference to nodepath passed .
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef convertLogicalSwitchRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef src, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)
      Trnaform logical switch to nodepath passed .
      static @Nullable org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> convertPsPath​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)  
      static java.lang.String convertToGlobalNodeId​(java.lang.String psNodeId)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> convertToInstanceIdentifier​(java.lang.String nodeIdString)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifierFromHAId​(java.lang.String haUUidVal)  
      static <D extends org.opendaylight.mdsal.binding.util.Datastore>
      void
      deleteNodeIfPresent​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<D> tx, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)  
      static void deletePSNodesOfNode​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> key, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node haNode, org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
      Delete PS data of HA node of Config Data tree.
      static java.util.List<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId> getChildNodeIdsFromManagerOtherConfig​(java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalConfigNodeOptional)
      Returns ha child node path from ha node of config data tree.
      static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getCreated​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)  
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepGlobalAugmentation getGlobalAugmentationOfNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)  
      static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getGlobalNodePathFromPSNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)  
      static @Nullable java.lang.String getHAIdFromManagerOtherConfig​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)  
      static java.lang.String getLogicalSwitchSwitchName​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef logicalSwitchRef)  
      static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeBuilder getNodeBuilderForPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPath)  
      static java.lang.String getNodeIdFromLocatorRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef locatorRef)  
      static java.lang.String getNodeIdFromLogicalSwitches​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef logicalSwitchRef)  
      static java.lang.String getNodeIdVal​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getOriginal​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)  
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder getOtherConfigBuilder​(java.lang.String key, java.lang.String val)
      Build other config data for HA node .
      static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentation getPhysicalSwitchAugmentationOfNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)  
      static java.util.Set<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> getPSChildrenIdsForHAPSNode​(java.lang.String psNodId)
      Return PS children for passed PS node .
      static @Nullable java.lang.String getPsName​(java.lang.String psNodeId)  
      static @Nullable java.lang.String getPsName​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)  
      static @Nullable java.lang.String getPsName​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> psNodeIid)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getRemoved​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)  
      static java.lang.String getTepIpVal​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef locatorRef)  
      static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getUpdated​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)  
      static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getUUid​(java.lang.String key)  
      static boolean isEmpty​(java.util.Collection collection)  
      static boolean isEmptyList​(@Nullable java.util.List list)  
      static <D extends org.opendaylight.mdsal.binding.util.Datastore>
      org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node
      readNode​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<D> tx, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • HWVTEP_ENTITY_TYPE

        public static final java.lang.String HWVTEP_ENTITY_TYPE
        See Also:
        Constant Field Values
      • HWVTEP_TOPOLOGY_ID

        public static final org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId HWVTEP_TOPOLOGY_ID
      • HWVTEP_URI_PREFIX

        public static final java.lang.String HWVTEP_URI_PREFIX
        See Also:
        Constant Field Values
    • Method Detail

      • buildLocatorRef

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef buildLocatorRef​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid,
                                                                                                                                                       java.lang.String tepIp)
      • getNodeIdVal

        public static java.lang.String getNodeIdVal​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
      • getUUid

        public static org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid getUUid​(java.lang.String key)
      • buildTpId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.node.TerminationPoint> buildTpId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeIid,
                                                                                                                                                                                                                               java.lang.String tepIp)
      • getTepIpVal

        public static java.lang.String getTepIpVal​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef locatorRef)
      • getLogicalSwitchSwitchName

        public static java.lang.String getLogicalSwitchSwitchName​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef logicalSwitchRef)
      • getNodeIdFromLocatorRef

        public static java.lang.String getNodeIdFromLocatorRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef locatorRef)
      • getNodeIdFromLogicalSwitches

        public static java.lang.String getNodeIdFromLogicalSwitches​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef logicalSwitchRef)
      • createInstanceIdentifierFromHAId

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> createInstanceIdentifierFromHAId​(java.lang.String haUUidVal)
      • convertToInstanceIdentifier

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> convertToInstanceIdentifier​(java.lang.String nodeIdString)
      • getOtherConfigBuilder

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.managers.ManagerOtherConfigsBuilder getOtherConfigBuilder​(java.lang.String key,
                                                                                                                                                                                                 java.lang.String val)
        Build other config data for HA node .
        Parameters:
        key - The key as in HA child device other config
        val - The value as in HA child device other config
        Returns:
        return other config object
      • readNode

        public static <D extends org.opendaylight.mdsal.binding.util.Datastore> org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node readNode​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<D> tx,
                                                                                                                                                                                                           org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodeId)
                                                                                                                                                                                                    throws java.util.concurrent.ExecutionException,
                                                                                                                                                                                                           java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • convertToGlobalNodeId

        public static java.lang.String convertToGlobalNodeId​(java.lang.String psNodeId)
      • convertLogicalSwitchRef

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef convertLogicalSwitchRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepLogicalSwitchRef src,
                                                                                                                                                             org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)
        Trnaform logical switch to nodepath passed .
        Parameters:
        src - HwvtepLogicalSwitchRef Logical Switch Ref which needs to be transformed
        nodePath - InstanceIdentifier src needs to be transformed to this path
        Returns:
        ref HwvtepLogicalSwitchRef the transforrmed result
      • convertLocatorRef

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef convertLocatorRef​(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepPhysicalLocatorRef src,
                                                                                                                                                         org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)
        Trnaform locator reference to nodepath passed .
        Parameters:
        src - HwvtepPhysicalLocatorRef Logical Switch Ref which needs to be transformed
        nodePath - InstanceIdentifier src needs to be transformed to this path
        Returns:
        physicalLocatorRef HwvtepPhysicalLocatorRef the transforrmed result
      • isEmptyList

        public static boolean isEmptyList​(@Nullable java.util.List list)
      • isEmpty

        public static boolean isEmpty​(java.util.Collection collection)
      • getOriginal

        public static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getOriginal​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)
      • getUpdated

        public static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getUpdated​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)
      • getCreated

        public static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getCreated​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)
      • getRemoved

        public static @Nullable org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node getRemoved​(org.opendaylight.mdsal.binding.api.DataObjectModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> mod)
      • getPsName

        public static @Nullable java.lang.String getPsName​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)
      • getPsName

        public static @Nullable java.lang.String getPsName​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> psNodeIid)
      • getPsName

        public static @Nullable java.lang.String getPsName​(java.lang.String psNodeId)
      • getGlobalNodePathFromPSNode

        public static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> getGlobalNodePathFromPSNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)
      • convertPsPath

        public static @Nullable org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> convertPsPath​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode,
                                                                                                                                                                                                                            org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> nodePath)
      • getNodeBuilderForPath

        public static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeBuilder getNodeBuilderForPath​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haPath)
      • getHAIdFromManagerOtherConfig

        public static @Nullable java.lang.String getHAIdFromManagerOtherConfig​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
      • getChildNodeIdsFromManagerOtherConfig

        public static java.util.List<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId> getChildNodeIdsFromManagerOtherConfig​(java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalConfigNodeOptional)
        Returns ha child node path from ha node of config data tree.
        Parameters:
        haGlobalConfigNodeOptional - HA global node
        Returns:
        ha Child ids
      • getPSChildrenIdsForHAPSNode

        public static java.util.Set<org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> getPSChildrenIdsForHAPSNode​(java.lang.String psNodId)
        Return PS children for passed PS node .
        Parameters:
        psNodId - PS node path
        Returns:
        child Switches
      • getGlobalAugmentationOfNode

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.HwvtepGlobalAugmentation getGlobalAugmentationOfNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node node)
      • getPhysicalSwitchAugmentationOfNode

        public static org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.PhysicalSwitchAugmentation getPhysicalSwitchAugmentationOfNode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node psNode)
      • buildManagersForHANode

        public static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.Managers> buildManagersForHANode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode,
                                                                                                                                                                                       java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg)
        Transform child managers (Source) to HA managers using HA node path.
        Parameters:
        childNode - Child Node
        haGlobalCfg - HA global config node
        Returns:
        Transformed managers
      • buildSwitchesForHANode

        public static java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.hwvtep.rev150901.hwvtep.global.attributes.Switches> buildSwitchesForHANode​(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode,
                                                                                                                                                                                       org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath,
                                                                                                                                                                                       java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNode)
        Transform child switch (Source) to HA swicthes using HA node path.
        Parameters:
        childNode - HA child node
        haNodePath - HA node path
        haNode - Ha node object
        Returns:
        Transformed switches
      • buildGlobalConfigForHANode

        public static void buildGlobalConfigForHANode​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx,
                                                      org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode,
                                                      org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haNodePath,
                                                      java.util.Optional<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> haGlobalCfg)
        Build HA Global node from child nodes in config data tress.
        Parameters:
        tx - Transaction
        childNode - Child Node object
        haNodePath - Ha node path
        haGlobalCfg - HA global node object
      • deleteNodeIfPresent

        public static <D extends org.opendaylight.mdsal.binding.util.Datastore> void deleteNodeIfPresent​(org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<D> tx,
                                                                                                         org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> iid)
                                                                                                  throws java.util.concurrent.ExecutionException,
                                                                                                         java.lang.InterruptedException
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException
      • deletePSNodesOfNode

        public static void deletePSNodesOfNode​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> key,
                                               org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node haNode,
                                               org.opendaylight.mdsal.binding.util.TypedReadWriteTransaction<org.opendaylight.mdsal.binding.util.Datastore.Configuration> tx)
                                        throws java.util.concurrent.ExecutionException,
                                               java.lang.InterruptedException
        Delete PS data of HA node of Config Data tree.
        Parameters:
        key - Node object
        haNode - Ha Node from which to be deleted
        tx - Transaction
        Throws:
        java.util.concurrent.ExecutionException
        java.lang.InterruptedException