Class AclServiceOFFlowBuilder
- java.lang.Object
-
- org.opendaylight.netvirt.aclservice.utils.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.AceIp acl)
Converts ether matches to flows.static java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>>
programIcmpFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.AceIp acl)
Converts icmp matches to flows.static @Nullable java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>>
programIpFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.Matches matches)
Converts IP matches into flows.static java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>>
programOtherProtocolFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.AceIp acl)
Converts generic protocol matches to flows.static java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>>
programTcpFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.AceIp acl)
Converts TCP matches to flows.static java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>>
programUdpFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.AceIp acl)
Converts UDP matches to flows.
-
-
-
Method Detail
-
programIpFlow
public static @Nullable java.util.Map<java.lang.String,java.util.List<org.opendaylight.genius.mdsalutil.MatchInfoBase>> programIpFlow(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.access.control.list.rev160218.access.lists.acl.access.list.entries.ace.matches.ace.type.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 tagconntrackState
- conntrack state to be used with matchesconntrackMask
- conntrack mask to be used with matchesserviceMode
- 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.
-
-