import org.opendaylight.genius.mdsalutil.actions.ActionDrop
import org.opendaylight.genius.mdsalutil.FlowEntity
import org.opendaylight.genius.mdsalutil.instructions.InstructionApplyActions
+import org.opendaylight.genius.mdsalutil.matches.MatchArpSha
import org.opendaylight.genius.mdsalutil.matches.MatchEthernetDestination
import org.opendaylight.genius.mdsalutil.matches.MatchEthernetSource
import org.opendaylight.genius.mdsalutil.matches.MatchEthernetType
+ fixedIngressFlowsPort2
+ fixedConntrackIngressFlowsPort2
+ etherIngressFlowsPort2
+ + etherIngressFlowsPort2
+ + etherIngressFlowsPort2
+ fixedEgressFlowsPort2
+ fixedConntrackEgressFlowsPort2
+ etheregressFlowPort2
+ + remoteFlows
}
protected def tcpFlows() {
+ fixedEgressFlowsPort2
+ fixedConntrackEgressFlowsPort2
+ tcpEgressFlowPort2
+ + tcpEgressFlowPort2
+ + tcpEgressFlowPort2
+ + remoteFlows
}
protected def udpFlows() {
+ fixedIngressFlowsPort2
+ fixedConntrackIngressFlowsPort2
+ udpIngressFlowsPort2
+ + udpIngressFlowsPort2
+ + udpIngressFlowsPort2
+ fixedEgressFlowsPort2
+ fixedConntrackEgressFlowsPort2
+ udpEgressFlowsPort2
+ + remoteFlows
}
protected def icmpFlows() {
+ fixedEgressFlowsPort2
+ fixedConntrackEgressFlowsPort2
+ icmpEgressFlowsPort2
+ + icmpEgressFlowsPort2
+ + icmpEgressFlowsPort2
+ + remoteFlows
}
protected def dstRangeFlows() {
#[
new FlowEntity(123bi) => [
cookie = 110100480bi
- flowId = "ETHERnull_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F3_10.0.0.1/32"
+ flowId = "ETHERnull_remoteACL_id_85cc3048-abc3-43cc-89b3-377341426ac5"
+"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
flowName = "ACL"
instructionInfoList = #[
])
]
matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Source("10.0.0.1", "32"),
+ new MatchMetadata(4bi, MetaDataUtil.METADATA_MASK_REMOTE_ACL_ID),
new MatchEthernetType(2048L),
new MatchEthernetType(2048L),
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
- tableId = 243 as short
- ],
- new FlowEntity(123bi) => [
- cookie = 110100480bi
- flowId = "ETHERnull_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F4_10.0.0.2/32"
- +"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
- flowName = "ACL"
- instructionInfoList = #[
- new InstructionApplyActions(#[
- new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
- new ActionNxResubmit(220 as short)
- ])
- ]
- matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Source("10.0.0.2", "32"),
- new MatchEthernetType(2048L),
- new MatchEthernetType(2048L),
- new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
- new NxMatchCtState(33L, 33L)
- ]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
#[
new FlowEntity(123bi) => [
cookie = 110100480bi
- flowId = "TCP_DESTINATION_80_65535_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F3_10.0.0.1/32"
+ flowId = "TCP_DESTINATION_80_65535_remoteACL_id_85cc3048-abc3-43cc-89b3-377341426ac5"
+"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
flowName = "ACL"
instructionInfoList = #[
])
]
matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Destination("10.0.0.1", "32"),
- new MatchEthernetType(2048L),
- new MatchEthernetType(2048L),
- new NxMatchTcpDestinationPort(80, 65535),
- new MatchIpProtocol(6 as short),
- new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
- new NxMatchCtState(33L, 33L)
- ]
- priority = IdHelper.getFlowPriority(flowId)
- tableId = 213 as short
- ],
- new FlowEntity(123bi) => [
- cookie = 110100480bi
- flowId = "TCP_DESTINATION_80_65535_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F4_10.0.0.2/32Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
- flowName = "ACL"
- instructionInfoList = #[
- new InstructionApplyActions(#[
- new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
- new ActionNxResubmit(17 as short)
- ])
- ]
- matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Destination("10.0.0.2", "32"),
+ new MatchMetadata(4bi, MetaDataUtil.METADATA_MASK_REMOTE_ACL_ID),
new MatchEthernetType(2048L),
new MatchEthernetType(2048L),
new NxMatchTcpDestinationPort(80, 65535),
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
#[
new FlowEntity(123bi) => [
cookie = 110100480bi
- flowId = "UDP_DESTINATION_80_65535_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F3_10.0.0.1/32"
+ flowId = "UDP_DESTINATION_80_65535_remoteACL_id_85cc3048-abc3-43cc-89b3-377341426ac5"
+"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
flowName = "ACL"
instructionInfoList = #[
])
]
matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Source("10.0.0.1", "32"),
+ new MatchMetadata(4bi, MetaDataUtil.METADATA_MASK_REMOTE_ACL_ID),
new MatchEthernetType(2048L),
new MatchEthernetType(2048L),
new NxMatchUdpDestinationPort(80, 65535),
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
- tableId = 243 as short
- ],
- new FlowEntity(123bi) => [
- cookie = 110100480bi
- flowId = "UDP_DESTINATION_80_65535_ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F4_10.0.0.2/32Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
- flowName = "ACL"
- instructionInfoList = #[
- new InstructionApplyActions(#[
- new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
- new ActionNxResubmit(220 as short)
- ])
- ]
- matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Source("10.0.0.2", "32"),
- new MatchEthernetType(2048L),
- new MatchEthernetType(2048L),
- new NxMatchUdpDestinationPort(80, 65535),
- new MatchIpProtocol(17 as short),
- new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
- new NxMatchCtState(33L, 33L)
- ]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
#[
new FlowEntity(123bi) => [
cookie = 110100480bi
- flowId = "ICMP_V4_DESTINATION_23__ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F3_10.0.0.1/32"
+ flowId = "ICMP_V4_DESTINATION_23__remoteACL_id_85cc3048-abc3-43cc-89b3-377341426ac5"
+"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
flowName = "ACL"
instructionInfoList = #[
])
]
matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Destination("10.0.0.1", "32"),
+ new MatchMetadata(4bi, MetaDataUtil.METADATA_MASK_REMOTE_ACL_ID),
new MatchEthernetType(2048L),
new MatchEthernetType(2048L),
new MatchIcmpv4(2 as short, 3 as short),
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
- tableId = 213 as short
- ],
- new FlowEntity(123bi) => [
- cookie = 110100480bi
- flowId = "ICMP_V4_DESTINATION_23__ipv4_remoteACL_interface_aap_0D:AA:D8:42:30:F4_10.0.0.2/32"
- +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
- flowName = "ACL"
- instructionInfoList = #[
- new InstructionApplyActions(#[
- new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
- new ActionNxResubmit(17 as short)
- ])
- ]
- matchInfoList = #[
- new MatchEthernetType(2048L),
- new MatchIpv4Destination("10.0.0.2", "32"),
- new MatchEthernetType(2048L),
- new MatchEthernetType(2048L),
- new MatchIcmpv4(2 as short, 3 as short),
- new MatchIpProtocol(1 as short),
- new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
- new NxMatchCtState(33L, 33L)
- ]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
],
new FlowEntity(123bi) => [
new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 243 as short
]
]
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
],
new FlowEntity(123bi) => [
new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
new NxMatchCtState(33L, 33L)
]
- priority = IdHelper.getFlowPriority(flowId)
+ priority = IdHelper.getId(flowId)
tableId = 213 as short
]
]
]
priority = 62015
tableId = 243 as short
+ ],
+ new FlowEntity(123bi) => [
+ cookie = 110100480bi
+ flowId = "Ingress_Fixed_Conntrk_123_" + mac + "_10.0.0.1/32_Recirc"
+ flowName = "ACL"
+ instructionInfoList = #[
+ new InstructionApplyActions(#[
+ new ActionNxConntrack(2, 0, 0, 5000, 242 as short)
+ ])
+ ]
+ matchInfoList = #[
+ new MatchEthernetType(2048L),
+ new MatchEthernetDestination(new MacAddress(mac)),
+ new MatchEthernetType(2048L),
+ new MatchIpv4Destination("10.0.0.1", "32")
+ ]
+ priority = 61010
+ tableId = 241 as short
+ ],
+ new FlowEntity(123bi) => [
+ cookie = 110100480bi
+ flowId = "Egress_Fixed_Conntrk_123_" + mac + "_10.0.0.1/32_Recirc"
+ flowName = "ACL"
+ instructionInfoList = #[
+ new InstructionApplyActions(#[
+ new ActionNxConntrack(2, 0, 0, 5000, 212 as short)
+ ])
+ ]
+ matchInfoList = #[
+ new MatchEthernetSource(new MacAddress(mac)),
+ new MatchEthernetType(2048L),
+ new MatchIpv4Source("10.0.0.1", "32")
+ ]
+ priority = 61010
+ tableId = 211 as short
+ ],
+ new FlowEntity(123bi) => [
+ cookie = 110100480bi
+ flowId = "Egress_ARP_123_987_" + mac
+ flowName = "ACL"
+ instructionInfoList = #[
+ new InstructionApplyActions(#[
+ new ActionNxResubmit(17 as short)
+ ])
+ ]
+ matchInfoList = #[
+ new MatchEthernetType(2054L),
+ new MatchArpSha(new MacAddress(mac)),
+ new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
+ ]
+ priority = 63010
+ tableId = 211 as short
]
]
}