Class InterfaceServiceUtil
- java.lang.Object
-
- org.opendaylight.genius.interfacemanager.globals.InterfaceServiceUtil
-
public final class InterfaceServiceUtil extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ServicesInfo
buildServiceInfo(java.lang.String serviceName, short serviceIndex, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint64 cookie)
Deprecated.static ServicesInfo
buildServiceInfo(java.lang.String serviceName, short serviceIndex, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
Deprecated.static ServicesInfo
buildServiceInfo(java.lang.String serviceName, org.opendaylight.yangtools.yang.common.Uint8 servicePriority)
static BoundServices
getBoundServices(java.lang.String serviceName, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint16 flowPriority, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
static FlowInfoKey
getFlowStatisticsKey(org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.util.List<MatchInfo> matches, java.lang.String flowId)
static GroupInfoKey
getGroupStatisticsKey(org.opendaylight.yangtools.yang.common.Uint64 dpId, long groupId)
static java.util.List<MatchInfo>
getLPortDispatcherMatches(short serviceIndex, int interfaceTag)
static java.util.List<MatchInfo>
getMatchInfoForVlanLPort(org.opendaylight.yangtools.yang.common.Uint64 dpId, long portNo, long vlanId, boolean isVlanTransparent)
static java.util.Set<java.lang.Object>
getStatRequestKeys(org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.util.List<MatchInfo> matches, java.lang.String flowId, long groupId)
static short
getVlanId(java.lang.String interfaceName, org.opendaylight.mdsal.binding.api.DataBroker broker)
static void
mergeMetadataMatchsOrAdd(java.util.List<MatchInfoBase> matches, MatchInfoBase match)
If matches contains MatchMetadata in its list and match is of type MatchMetadata, then this function will merge the MatchMetadatas using "or" of the masks and the values, otherwise it will add the match to the matches list.
-
-
-
Method Detail
-
buildServiceInfo
@Deprecated public static ServicesInfo buildServiceInfo(java.lang.String serviceName, short serviceIndex, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
Deprecated.Build a service information structure.
-
buildServiceInfo
@Deprecated public static ServicesInfo buildServiceInfo(java.lang.String serviceName, short serviceIndex, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint64 cookie)
Deprecated.Build a service information structure.
-
buildServiceInfo
public static ServicesInfo buildServiceInfo(java.lang.String serviceName, org.opendaylight.yangtools.yang.common.Uint8 servicePriority)
-
getBoundServices
public static BoundServices getBoundServices(java.lang.String serviceName, org.opendaylight.yangtools.yang.common.Uint8 servicePriority, org.opendaylight.yangtools.yang.common.Uint16 flowPriority, org.opendaylight.yangtools.yang.common.Uint64 cookie, java.util.List<org.opendaylight.yang.gen.v1.urn.opendaylight.flow.types.rev131026.instruction.list.Instruction> instructions)
-
getMatchInfoForVlanLPort
public static java.util.List<MatchInfo> getMatchInfoForVlanLPort(org.opendaylight.yangtools.yang.common.Uint64 dpId, long portNo, long vlanId, boolean isVlanTransparent)
-
mergeMetadataMatchsOrAdd
public static void mergeMetadataMatchsOrAdd(java.util.List<MatchInfoBase> matches, MatchInfoBase match)
If matches contains MatchMetadata in its list and match is of type MatchMetadata, then this function will merge the MatchMetadatas using "or" of the masks and the values, otherwise it will add the match to the matches list.- Parameters:
matches
- - matches listmatch
- - metadata or other match
-
getVlanId
public static short getVlanId(java.lang.String interfaceName, org.opendaylight.mdsal.binding.api.DataBroker broker) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
getStatRequestKeys
public static java.util.Set<java.lang.Object> getStatRequestKeys(org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.util.List<MatchInfo> matches, java.lang.String flowId, long groupId)
-
getGroupStatisticsKey
public static GroupInfoKey getGroupStatisticsKey(org.opendaylight.yangtools.yang.common.Uint64 dpId, long groupId)
-
getFlowStatisticsKey
public static FlowInfoKey getFlowStatisticsKey(org.opendaylight.yangtools.yang.common.Uint64 dpId, short tableId, java.util.List<MatchInfo> matches, java.lang.String flowId)
-
getLPortDispatcherMatches
public static java.util.List<MatchInfo> getLPortDispatcherMatches(short serviceIndex, int interfaceTag)
-
-