Class AclServiceOFFlowBuilder


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addDstIpMatches​(AceIp acl)
      Adds destination ip matches to the flows.
      static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addLPortTagMatches​(int lportTag, int conntrackState, int conntrackMask, java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.ServiceModeBase> serviceMode)
      Adds LPort matches to the flow.
      static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addSrcIpMatches​(AceIp acl)
      Adds source ip matches to the flows.
      static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getDropInstructionInfo()
      Returns drop instruction info.
      static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getGotoInstructionInfo​(short gotoTableId)
      Gets the goto instruction info which specifies goto to the specified table.
      static java.util.Map<java.lang.Integer,​java.lang.Integer> getLayer4MaskForRange​(int portMin, int portMax)
      Converts port range into a set of masked port ranges.
      static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getResubmitInstructionInfo​(short tableId)
      Returns resubmit instruction info to the given table ID.
      static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programEtherFlow​(AceIp acl)
      Converts ether matches to flows.
      static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programIcmpFlow​(AceIp acl)
      Converts icmp matches to flows.
      static @Nullable java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programIpFlow​(Matches matches)
      Converts IP matches into flows.
      static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programOtherProtocolFlow​(AceIp acl)
      Converts generic protocol matches to flows.
      static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programTcpFlow​(AceIp acl)
      Converts TCP matches to flows.
      static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programUdpFlow​(AceIp acl)
      Converts UDP matches to flows.
      • Methods inherited from class java.lang.Object

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

      • programIpFlow

        public static @Nullable java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programIpFlow​(Matches matches)
        Converts IP matches into flows.
        Parameters:
        matches - the matches
        Returns:
        the map containing the flows and the respective flow id
      • programEtherFlow

        public static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programEtherFlow​(AceIp acl)
        Converts ether matches to flows.
        Parameters:
        acl - the access control list
        Returns:
        the map containing the flows and the respective flow id
      • programOtherProtocolFlow

        public static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programOtherProtocolFlow​(AceIp acl)
        Converts generic protocol matches to flows.
        Parameters:
        acl - the access control list
        Returns:
        the map containing the flows and the respective flow id
      • programIcmpFlow

        public static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programIcmpFlow​(AceIp acl)
        Converts icmp matches to flows.
        Parameters:
        acl - the access control list
        Returns:
        the map containing the flows and the respective flow id
      • programTcpFlow

        public static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programTcpFlow​(AceIp acl)
        Converts TCP matches to flows.
        Parameters:
        acl - the access control list
        Returns:
        the map containing the flows and the respective flow id
      • programUdpFlow

        public static java.util.Map<java.lang.String,​java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programUdpFlow​(AceIp acl)
        Converts UDP matches to flows.
        Parameters:
        acl - the access control list
        Returns:
        the map containing the flows and the respective flow id
      • addSrcIpMatches

        public static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addSrcIpMatches​(AceIp acl)
        Adds source ip matches to the flows.
        Parameters:
        acl - the access control list
        Returns:
        the list of flows.
      • addDstIpMatches

        public static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addDstIpMatches​(AceIp acl)
        Adds destination ip matches to the flows.
        Parameters:
        acl - the access control list
        Returns:
        the list of flows.
      • addLPortTagMatches

        public static java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase> addLPortTagMatches​(int lportTag,
                                                                                                         int conntrackState,
                                                                                                         int conntrackMask,
                                                                                                         java.lang.Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.servicebinding.rev160406.ServiceModeBase> serviceMode)
        Adds LPort matches to the flow.
        Parameters:
        lportTag - lport tag
        conntrackState - conntrack state to be used with matches
        conntrackMask - conntrack mask to be used with matches
        serviceMode - ingress or egress service
        Returns:
        list of matches
      • getDropInstructionInfo

        public static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getDropInstructionInfo()
        Returns drop instruction info.
        Returns:
        drop list of InstructionInfo objects
      • getResubmitInstructionInfo

        public static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getResubmitInstructionInfo​(short tableId)
        Returns resubmit instruction info to the given table ID.
        Parameters:
        tableId - the table id
        Returns:
        resubmit list of InstructionInfo objects
      • getGotoInstructionInfo

        public static java.util.List<org.opendaylight.genius.mdsalutil.InstructionInfo> getGotoInstructionInfo​(short gotoTableId)
        Gets the goto instruction info which specifies goto to the specified table.
        Parameters:
        gotoTableId - the goto table id
        Returns:
        the goto instruction info
      • getLayer4MaskForRange

        public static java.util.Map<java.lang.Integer,​java.lang.Integer> getLayer4MaskForRange​(int portMin,
                                                                                                     int portMax)
        Converts port range into a set of masked port ranges.
        Parameters:
        portMin - the starting port of the range.
        portMax - the ending port of the range.
        Returns:
        the map containing the port no and their mask.