Class SouthboundUtils
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.renderer.ovs.utilities.SouthboundUtils
-
@Singleton public class SouthboundUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BFD_ENABLE_KEY
static java.lang.String
BFD_ENABLE_VALUE
static java.lang.String
BFD_OP_STATE
static java.lang.String
BFD_STATE_UP
-
Constructor Summary
Constructors Constructor Description SouthboundUtils(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, BatchingUtils batchingUtils, InterfacemgrProvider interfacemgrProvider, org.opendaylight.infrautils.caches.CacheProvider cacheProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllPortsToBridge(BridgeEntry bridgeEntry, InterfaceManagerCommonUtils interfaceManagerCommonUtils, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation> bridgeIid, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeNew)
void
addPortToBridge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface, java.lang.String portName)
static boolean
bfdMonitoringEnabled(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.port._interface.attributes.InterfaceBfd> interfaceBfds)
static boolean
bfdMonitoringEnabled(IfTunnel ifTunnel)
static boolean
changeInBfdMonitoringDetected(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
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>
createTerminationPointInstanceIdentifier(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey nodekey, java.lang.String portName)
static java.lang.String
generateOfTunnelName(org.opendaylight.yangtools.yang.common.Uint64 dpId, IfTunnel ifTunnel)
static boolean
ifBfdStatusNotEqual(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
static boolean
isInterfaceTypeTunnel(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase> interfaceType)
static boolean
isMonitorProtocolBfd(IfTunnel ifTunnel)
static boolean
isOfTunnel(IfTunnel ifTunnel)
void
removeTerminationEndPoint(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, java.lang.String interfaceName)
static void
updateBfdParamtersForTerminationPoint(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, IfTunnel ifTunnel, java.lang.String portName, TypedWriteTransaction<Datastore.Configuration> transaction)
-
-
-
Field Detail
-
BFD_ENABLE_KEY
public static final java.lang.String BFD_ENABLE_KEY
- See Also:
- Constant Field Values
-
BFD_ENABLE_VALUE
public static final java.lang.String BFD_ENABLE_VALUE
- See Also:
- Constant Field Values
-
BFD_OP_STATE
public static final java.lang.String BFD_OP_STATE
- See Also:
- Constant Field Values
-
BFD_STATE_UP
public static final java.lang.String BFD_STATE_UP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SouthboundUtils
@Inject public SouthboundUtils(org.opendaylight.controller.md.sal.binding.api.DataBroker dataBroker, BatchingUtils batchingUtils, InterfacemgrProvider interfacemgrProvider, org.opendaylight.infrautils.caches.CacheProvider cacheProvider)
-
-
Method Detail
-
addPortToBridge
public void addPortToBridge(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.interfaces.rev140508.interfaces.Interface iface, java.lang.String portName)
-
addAllPortsToBridge
public void addAllPortsToBridge(BridgeEntry bridgeEntry, InterfaceManagerCommonUtils interfaceManagerCommonUtils, org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation> bridgeIid, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbBridgeAugmentation bridgeNew)
-
updateBfdParamtersForTerminationPoint
public static void updateBfdParamtersForTerminationPoint(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, IfTunnel ifTunnel, java.lang.String portName, TypedWriteTransaction<Datastore.Configuration> transaction)
-
createTerminationPointInstanceIdentifier
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> createTerminationPointInstanceIdentifier(org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey nodekey, java.lang.String portName)
-
removeTerminationEndPoint
public void removeTerminationEndPoint(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> bridgeIid, java.lang.String interfaceName)
-
ifBfdStatusNotEqual
public static boolean ifBfdStatusNotEqual(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
-
changeInBfdMonitoringDetected
public static boolean changeInBfdMonitoringDetected(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpOld, org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.OvsdbTerminationPointAugmentation tpNew)
-
bfdMonitoringEnabled
public static boolean bfdMonitoringEnabled(IfTunnel ifTunnel)
-
bfdMonitoringEnabled
public static boolean bfdMonitoringEnabled(java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.port._interface.attributes.InterfaceBfd> interfaceBfds)
-
isMonitorProtocolBfd
public static boolean isMonitorProtocolBfd(IfTunnel ifTunnel)
-
generateOfTunnelName
public static java.lang.String generateOfTunnelName(org.opendaylight.yangtools.yang.common.Uint64 dpId, IfTunnel ifTunnel)
-
isOfTunnel
public static boolean isOfTunnel(IfTunnel ifTunnel)
-
isInterfaceTypeTunnel
public static boolean isInterfaceTypeTunnel(java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.InterfaceTypeBase> interfaceType)
-
-