Class 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, int servicePriority)  
      static ServicesInfo buildServiceInfo​(java.lang.String serviceName, short serviceIndex, int servicePriority, org.opendaylight.yangtools.yang.common.Uint64 cookie)
      static ServicesInfo buildServiceInfo​(java.lang.String serviceName, short serviceIndex, int 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)
      static BoundServices getBoundServices​(java.lang.String serviceName, short servicePriority, int 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.controller.md.sal.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.
      • Methods inherited from class java.lang.Object

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

      • buildServiceInfo

        @Deprecated
        public static ServicesInfo buildServiceInfo​(java.lang.String serviceName,
                                                    short serviceIndex,
                                                    int 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)
        Build a service information structure.
      • buildServiceInfo

        @Deprecated
        public static ServicesInfo buildServiceInfo​(java.lang.String serviceName,
                                                    short serviceIndex,
                                                    int servicePriority,
                                                    org.opendaylight.yangtools.yang.common.Uint64 cookie)
        Build a service information structure.
      • buildServiceInfo

        public static ServicesInfo buildServiceInfo​(java.lang.String serviceName,
                                                    int servicePriority)
      • getBoundServices

        public static BoundServices getBoundServices​(java.lang.String serviceName,
                                                     short servicePriority,
                                                     int 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 list
        match - - metadata or other match
      • getVlanId

        public static short getVlanId​(java.lang.String interfaceName,
                                      org.opendaylight.controller.md.sal.binding.api.DataBroker broker)
      • 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)