Class HwvtepHAUtil
- java.lang.Object
-
- org.opendaylight.netvirt.elan.l2gw.ha.HwvtepHAUtil
-
public final class HwvtepHAUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HA_CHILDREN
static java.lang.String
HA_ENABLED
static java.lang.String
HA_ID
static java.lang.String
HWVTEP_ENTITY_TYPE
static org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.TopologyId
HWVTEP_TOPOLOGY_ID
static java.lang.String
HWVTEP_URI_PREFIX
static java.lang.String
L2GW_JOB_KEY
static java.lang.String
MANAGER_KEY
static java.lang.String
PHYSICALSWITCH
static java.lang.String
TEP_PREFIX
static java.lang.String
UUID
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addToCacheIfHAChildNode(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childPath, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache hwvtepNodeHACache)
static void
buildGlobalConfigForHANode(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.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, com.google.common.base.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, com.google.common.base.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, com.google.common.base.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.genius.infra.Datastore>
voiddeleteNodeIfPresent(org.opendaylight.genius.infra.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.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.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(com.google.common.base.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.controller.md.sal.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 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
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.controller.md.sal.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 @Nullable java.lang.String
getPsName(java.lang.String psNodeId)
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.controller.md.sal.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.controller.md.sal.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)
-
-
-
Field Detail
-
HA_ENABLED
public static final java.lang.String HA_ENABLED
- See Also:
- Constant Field Values
-
HWVTEP_ENTITY_TYPE
public static final java.lang.String HWVTEP_ENTITY_TYPE
- See Also:
- Constant Field Values
-
TEP_PREFIX
public static final java.lang.String TEP_PREFIX
- See Also:
- Constant Field Values
-
HA_ID
public static final java.lang.String HA_ID
- See Also:
- Constant Field Values
-
HA_CHILDREN
public static final java.lang.String HA_CHILDREN
- See Also:
- Constant Field Values
-
PHYSICALSWITCH
public static final java.lang.String PHYSICALSWITCH
- 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
-
UUID
public static final java.lang.String UUID
- See Also:
- Constant Field Values
-
HWVTEP_URI_PREFIX
public static final java.lang.String HWVTEP_URI_PREFIX
- See Also:
- Constant Field Values
-
MANAGER_KEY
public static final java.lang.String MANAGER_KEY
- See Also:
- Constant Field Values
-
L2GW_JOB_KEY
public static final java.lang.String L2GW_JOB_KEY
- 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)
-
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 configval
- The value as in HA child device other config- Returns:
- return other config object
-
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 transformednodePath
-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 transformednodePath
-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.controller.md.sal.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.controller.md.sal.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.controller.md.sal.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.controller.md.sal.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.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(com.google.common.base.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
-
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, com.google.common.base.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 NodehaGlobalCfg
- 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, com.google.common.base.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 nodehaNodePath
- HA node pathhaNode
- Ha node object- Returns:
- Transformed switches
-
buildGlobalConfigForHANode
public static void buildGlobalConfigForHANode(org.opendaylight.genius.infra.TypedWriteTransaction<org.opendaylight.genius.infra.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, com.google.common.base.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
- TransactionchildNode
- Child Node objecthaNodePath
- Ha node pathhaGlobalCfg
- HA global node object
-
deleteNodeIfPresent
public static <D extends org.opendaylight.genius.infra.Datastore> void deleteNodeIfPresent(org.opendaylight.genius.infra.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.genius.infra.TypedReadWriteTransaction<org.opendaylight.genius.infra.Datastore.Configuration> tx) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Delete PS data of HA node of Config Data tree.- Parameters:
key
- Node objecthaNode
- Ha Node from which to be deletedtx
- Transaction- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
addToCacheIfHAChildNode
public static void addToCacheIfHAChildNode(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node> childPath, org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node childNode, org.opendaylight.genius.utils.hwvtep.HwvtepNodeHACache hwvtepNodeHACache)
-
-