2 * Copyright (c) 2017 Red Hat, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.netvirt.aclservice.tests
10 import org.opendaylight.genius.mdsalutil.actions.ActionNxConntrack
11 import org.opendaylight.genius.mdsalutil.actions.ActionNxResubmit
12 import org.opendaylight.genius.mdsalutil.actions.ActionDrop
13 import org.opendaylight.genius.mdsalutil.FlowEntity
14 import org.opendaylight.genius.mdsalutil.instructions.InstructionApplyActions
15 import org.opendaylight.genius.mdsalutil.matches.MatchEthernetDestination
16 import org.opendaylight.genius.mdsalutil.matches.MatchEthernetSource
17 import org.opendaylight.genius.mdsalutil.matches.MatchEthernetType
18 import org.opendaylight.genius.mdsalutil.matches.MatchIcmpv6
19 import org.opendaylight.genius.mdsalutil.matches.MatchIpProtocol
20 import org.opendaylight.genius.mdsalutil.matches.MatchIpv6Destination
21 import org.opendaylight.genius.mdsalutil.matches.MatchIpv6Source
22 import org.opendaylight.genius.mdsalutil.matches.MatchMetadata
23 import org.opendaylight.genius.mdsalutil.MetaDataUtil
24 import org.opendaylight.genius.mdsalutil.nxmatches.NxMatchCtState
25 import org.opendaylight.genius.mdsalutil.nxmatches.NxMatchTcpDestinationPort
26 import org.opendaylight.genius.mdsalutil.nxmatches.NxMatchUdpDestinationPort
27 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
29 import org.opendaylight.genius.mdsalutil.nxmatches.NxMatchRegister
30 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg6
32 class FlowEntryObjectsStatefulIPv6 extends FlowEntryObjectsStateful {
34 override fixedConntrackIngressFlowsPort1() {
36 new FlowEntity(123bi) => [
38 flowId = "Ingress_Fixed_Conntrk_123_0D:AA:D8:42:30:F3_2001:db8:1::/64_Recirc"
40 instructionInfoList = #[
41 new InstructionApplyActions(#[
42 new ActionNxConntrack(2, 0, 0, 5000, 243 as short)
46 new MatchEthernetType(34525L),
47 new MatchEthernetDestination(new MacAddress("0D:AA:D8:42:30:F3")),
48 new MatchEthernetType(34525L),
49 new MatchIpv6Destination("2001:db8:1::/64")
52 tableId = 241 as short
54 new FlowEntity(123bi) => [
56 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_New"
58 instructionInfoList = #[
59 new InstructionApplyActions(#[
64 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
65 new NxMatchCtState(33, 33)
68 tableId = 213 as short
70 new FlowEntity(123bi) => [
72 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
74 instructionInfoList = #[
75 new InstructionApplyActions(#[
80 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
81 new NxMatchCtState(48, 48)
84 tableId = 213 as short
89 override etherIngressFlowsPort2() {
91 new FlowEntity(123bi) => [
93 flowId = "ETHERnull_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
94 +"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
96 instructionInfoList = #[
97 new InstructionApplyActions(#[
98 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
99 new ActionNxResubmit(220 as short)
103 new MatchEthernetType(34525L),
104 new MatchIpv6Source("2001:db8:1::/64"),
105 new MatchEthernetType(34525L),
106 new MatchIpv6Source("::/0"),
107 new MatchEthernetType(34525L),
108 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
109 new NxMatchCtState(33, 33)
111 priority = IdHelper.getId(flowId)
112 tableId = 243 as short
114 new FlowEntity(123bi) => [
116 flowId = "ETHERnull_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64"
117 +"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
119 instructionInfoList = #[
120 new InstructionApplyActions(#[
121 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
122 new ActionNxResubmit(220 as short)
126 new MatchEthernetType(34525L),
127 new MatchIpv6Source("2001:db8:2::/64"),
128 new MatchEthernetType(34525L),
129 new MatchIpv6Source("::/0"),
130 new MatchEthernetType(34525L),
131 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
132 new NxMatchCtState(33, 33)
134 priority = IdHelper.getId(flowId)
135 tableId = 243 as short
140 override fixedConntrackEgressFlowsPort1() {
142 new FlowEntity(123bi) => [
144 flowId = "Egress_Fixed_Conntrk_123_0D:AA:D8:42:30:F3_2001:db8:1::/64_Recirc"
146 instructionInfoList = #[
147 new InstructionApplyActions(#[
148 new ActionNxConntrack(2, 0, 0, 5000, 213 as short)
152 new MatchEthernetSource(new MacAddress("0D:AA:D8:42:30:F3")),
153 new MatchEthernetType(34525L),
154 new MatchIpv6Source("2001:db8:1::/64")
157 tableId = 211 as short
159 new FlowEntity(123bi) => [
161 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_New"
163 instructionInfoList = #[
164 new InstructionApplyActions(#[
169 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
170 new NxMatchCtState(33, 33)
173 tableId = 243 as short
175 new FlowEntity(123bi) => [
177 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
179 instructionInfoList = #[
180 new InstructionApplyActions(#[
185 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
186 new NxMatchCtState(48, 48)
189 tableId = 243 as short
194 override fixedConntrackIngressFlowsPort2() {
196 new FlowEntity(123bi) => [
198 flowId = "Ingress_Fixed_Conntrk_123_0D:AA:D8:42:30:F4_2001:db8:2::/64_Recirc"
200 instructionInfoList = #[
201 new InstructionApplyActions(#[
202 new ActionNxConntrack(2, 0, 0, 5000, 243 as short)
206 new MatchEthernetType(34525L),
207 new MatchEthernetDestination(new MacAddress("0D:AA:D8:42:30:F4")),
208 new MatchEthernetType(34525L),
209 new MatchIpv6Destination("2001:db8:2::/64")
212 tableId = 241 as short
214 new FlowEntity(123bi) => [
216 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_New"
218 instructionInfoList = #[
219 new InstructionApplyActions(#[
224 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
225 new NxMatchCtState(33, 33)
228 tableId = 213 as short
230 new FlowEntity(123bi) => [
232 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
234 instructionInfoList = #[
235 new InstructionApplyActions(#[
240 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
241 new NxMatchCtState(48, 48)
244 tableId = 213 as short
250 override fixedConntrackEgressFlowsPort2() {
252 new FlowEntity(123bi) => [
254 flowId = "Egress_Fixed_Conntrk_123_0D:AA:D8:42:30:F4_2001:db8:2::/64_Recirc"
256 instructionInfoList = #[
257 new InstructionApplyActions(#[
258 new ActionNxConntrack(2, 0, 0, 5000, 213 as short)
262 new MatchEthernetSource(new MacAddress("0D:AA:D8:42:30:F4")),
263 new MatchEthernetType(34525L),
264 new MatchIpv6Source("2001:db8:2::/64")
267 tableId = 211 as short
269 new FlowEntity(123bi) => [
271 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_New"
273 instructionInfoList = #[
274 new InstructionApplyActions(#[
279 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
280 new NxMatchCtState(33, 33)
283 tableId = 243 as short
285 new FlowEntity(123bi) => [
287 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
289 instructionInfoList = #[
290 new InstructionApplyActions(#[
295 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
296 new NxMatchCtState(48, 48)
299 tableId = 243 as short
304 override fixedConntrackIngressFlowsPort3() {
306 new FlowEntity(123bi) => [
308 flowId = "Ingress_Fixed_Conntrk_123_0D:AA:D8:42:30:F5_2001:db8:3::/64_Recirc"
310 instructionInfoList = #[
311 new InstructionApplyActions(#[
312 new ActionNxConntrack(2, 0, 0, 5000, 243 as short)
316 new MatchEthernetType(34525L),
317 new MatchEthernetDestination(new MacAddress("0D:AA:D8:42:30:F5")),
318 new MatchEthernetType(34525L),
319 new MatchIpv6Destination("2001:db8:3::/64")
322 tableId = 241 as short
324 new FlowEntity(123bi) => [
326 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_New"
328 instructionInfoList = #[
329 new InstructionApplyActions(#[
334 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
335 new NxMatchCtState(33, 33)
338 tableId = 213 as short
340 new FlowEntity(123bi) => [
342 flowId = "Ingress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
344 instructionInfoList = #[
345 new InstructionApplyActions(#[
350 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
351 new NxMatchCtState(48, 48)
354 tableId = 213 as short
359 override fixedConntrackEgressFlowsPort3() {
361 new FlowEntity(123bi) => [
363 flowId = "Egress_Fixed_Conntrk_123_0D:AA:D8:42:30:F5_2001:db8:3::/64_Recirc"
365 instructionInfoList = #[
366 new InstructionApplyActions(#[
367 new ActionNxConntrack(2, 0, 0, 5000, 213 as short)
371 new MatchEthernetSource(new MacAddress("0D:AA:D8:42:30:F5")),
372 new MatchEthernetType(34525L),
373 new MatchIpv6Source("2001:db8:3::/64")
376 tableId = 211 as short
378 new FlowEntity(123bi) => [
380 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_New"
382 instructionInfoList = #[
383 new InstructionApplyActions(#[
388 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
389 new NxMatchCtState(33, 33)
392 tableId = 243 as short
394 new FlowEntity(123bi) => [
396 flowId = "Egress_Fixed_Conntrk_Drop123_987_Tracked_Invalid"
398 instructionInfoList = #[
399 new InstructionApplyActions(#[
404 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
405 new MatchMetadata(1085217976614912bi, 1152920405095219200bi),
406 new NxMatchCtState(48, 48)
409 tableId = 243 as short
414 override etherEgressFlowsPort1() {
416 new FlowEntity(123bi) => [
418 flowId = "ETHERnullEgress98785cc3048-abc3-43cc-89b3-377341426ac6"
420 instructionInfoList = #[
421 new InstructionApplyActions(#[
422 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
423 new ActionNxResubmit(17 as short)
427 new MatchEthernetType(34525L),
428 new MatchIpv6Source("::/0"),
429 new MatchEthernetType(34525L),
430 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
431 new NxMatchCtState(33, 33)
433 priority = IdHelper.getId(flowId)
434 tableId = 213 as short
439 override etheregressFlowPort2() {
441 new FlowEntity(123bi) => [
443 flowId = "ETHERnullEgress98785cc3048-abc3-43cc-89b3-377341426ac6"
445 instructionInfoList = #[
446 new InstructionApplyActions(#[
447 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
448 new ActionNxResubmit(17 as short)
452 new MatchEthernetType(34525L),
453 new MatchIpv6Source("::/0"),
454 new MatchEthernetType(34525L),
455 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
456 new NxMatchCtState(33, 33)
458 priority = IdHelper.getId(flowId)
459 tableId = 213 as short
464 override tcpIngressFlowPort1() {
466 new FlowEntity(123bi) => [
468 flowId = "TCP_DESTINATION_80_65535Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
470 instructionInfoList = #[
471 new InstructionApplyActions(#[
472 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
473 new ActionNxResubmit(220 as short)
477 new MatchEthernetType(34525L),
478 new MatchIpv6Source("::/0"),
479 new MatchEthernetType(34525L),
480 new NxMatchTcpDestinationPort(80, 65535),
481 new MatchIpProtocol(6 as short),
482 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
483 new NxMatchCtState(33, 33)
485 priority = IdHelper.getId(flowId)
486 tableId = 243 as short
491 override tcpIngressFlowPort2() {
493 new FlowEntity(123bi) => [
495 flowId = "TCP_DESTINATION_80_65535Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
497 instructionInfoList = #[
498 new InstructionApplyActions(#[
499 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
500 new ActionNxResubmit(220 as short)
504 new MatchEthernetType(34525L),
505 new MatchIpv6Source("::/0"),
506 new MatchEthernetType(34525L),
507 new NxMatchTcpDestinationPort(80, 65535),
508 new MatchIpProtocol(6 as short),
509 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
510 new NxMatchCtState(33, 33)
512 priority = IdHelper.getId(flowId)
513 tableId = 243 as short
518 override tcpEgressFlowPort2() {
520 new FlowEntity(123bi) => [
522 flowId = "TCP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
523 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
525 instructionInfoList = #[
526 new InstructionApplyActions(#[
527 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
528 new ActionNxResubmit(17 as short)
532 new MatchEthernetType(34525L),
533 new MatchIpv6Destination("2001:db8:1::/64"),
534 new MatchEthernetType(34525L),
535 new MatchIpv6Source("::/0"),
536 new MatchEthernetType(34525L),
537 new NxMatchTcpDestinationPort(80, 65535),
538 new MatchIpProtocol(6 as short),
539 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
540 new NxMatchCtState(33, 33)
542 priority = IdHelper.getId(flowId)
543 tableId = 213 as short
545 new FlowEntity(123bi) => [
547 flowId = "TCP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
549 instructionInfoList = #[
550 new InstructionApplyActions(#[
551 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
552 new ActionNxResubmit(17 as short)
556 new MatchEthernetType(34525L),
557 new MatchIpv6Destination("2001:db8:2::/64"),
558 new MatchEthernetType(34525L),
559 new MatchIpv6Source("::/0"),
560 new MatchEthernetType(34525L),
561 new NxMatchTcpDestinationPort(80, 65535),
562 new MatchIpProtocol(6 as short),
563 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
564 new NxMatchCtState(33, 33)
566 priority = IdHelper.getId(flowId)
567 tableId = 213 as short
572 override udpEgressFlowsPort1() {
574 new FlowEntity(123bi) => [
576 flowId = "UDP_DESTINATION_80_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
578 instructionInfoList = #[
579 new InstructionApplyActions(#[
580 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
581 new ActionNxResubmit(17 as short)
585 new MatchEthernetType(34525L),
586 new MatchIpv6Source("::/0"),
587 new MatchEthernetType(34525L),
588 new NxMatchUdpDestinationPort(80, 65535),
589 new MatchIpProtocol(17 as short),
590 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
591 new NxMatchCtState(33, 33)
593 priority = IdHelper.getId(flowId)
594 tableId = 213 as short
599 override udpIngressFlowsPort2() {
601 new FlowEntity(123bi) => [
603 flowId = "UDP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
604 +"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
606 instructionInfoList = #[
607 new InstructionApplyActions(#[
608 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
609 new ActionNxResubmit(220 as short)
613 new MatchEthernetType(34525L),
614 new MatchIpv6Source("2001:db8:1::/64"),
615 new MatchEthernetType(34525L),
616 new MatchIpv6Source("::/0"),
617 new MatchEthernetType(34525L),
618 new NxMatchUdpDestinationPort(80, 65535),
619 new MatchIpProtocol(17 as short),
620 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
621 new NxMatchCtState(33, 33)
623 priority = IdHelper.getId(flowId)
624 tableId = 243 as short
626 new FlowEntity(123bi) => [
628 flowId = "UDP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
630 instructionInfoList = #[
631 new InstructionApplyActions(#[
632 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
633 new ActionNxResubmit(220 as short)
637 new MatchEthernetType(34525L),
638 new MatchIpv6Source("2001:db8:2::/64"),
639 new MatchEthernetType(34525L),
640 new MatchIpv6Source("::/0"),
641 new MatchEthernetType(34525L),
642 new NxMatchUdpDestinationPort(80, 65535),
643 new MatchIpProtocol(17 as short),
644 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
645 new NxMatchCtState(33, 33)
647 priority = IdHelper.getId(flowId)
648 tableId = 243 as short
653 override udpEgressFlowsPort2() {
655 new FlowEntity(123bi) => [
657 flowId = "UDP_DESTINATION_80_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
659 instructionInfoList = #[
660 new InstructionApplyActions(#[
661 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
662 new ActionNxResubmit(17 as short)
666 new MatchEthernetType(34525L),
667 new MatchIpv6Source("::/0"),
668 new MatchEthernetType(34525L),
669 new NxMatchUdpDestinationPort(80, 65535),
670 new MatchIpProtocol(17 as short),
671 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
672 new NxMatchCtState(33, 33)
674 priority = IdHelper.getId(flowId)
675 tableId = 213 as short
680 override icmpIngressFlowsPort1() {
682 new FlowEntity(123bi) => [
684 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
686 instructionInfoList = #[
687 new InstructionApplyActions(#[
688 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
689 new ActionNxResubmit(220 as short)
693 new MatchEthernetType(34525L),
694 new MatchIpv6Source("::/0"),
695 new MatchEthernetType(34525L),
696 new MatchIcmpv6(2 as short, 3 as short),
697 new MatchIpProtocol(1 as short),
698 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
699 new NxMatchCtState(33, 33)
701 priority = IdHelper.getId(flowId)
702 tableId = 243 as short
707 override icmpIngressFlowsPort2() {
709 new FlowEntity(123bi) => [
711 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
713 instructionInfoList = #[
714 new InstructionApplyActions(#[
715 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
716 new ActionNxResubmit(220 as short)
720 new MatchEthernetType(34525L),
721 new MatchIpv6Source("::/0"),
722 new MatchEthernetType(34525L),
723 new MatchIcmpv6(2 as short, 3 as short),
724 new MatchIpProtocol(1 as short),
725 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
726 new NxMatchCtState(33, 33)
728 priority = IdHelper.getId(flowId)
729 tableId = 243 as short
734 override icmpEgressFlowsPort2() {
736 new FlowEntity(123bi) => [
738 flowId = "ICMP_V6_DESTINATION_23__ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
739 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
741 instructionInfoList = #[
742 new InstructionApplyActions(#[
743 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
744 new ActionNxResubmit(17 as short)
748 new MatchEthernetType(34525L),
749 new MatchIpv6Destination("2001:db8:1::/64"),
750 new MatchEthernetType(34525L),
751 new MatchIpv6Source("::/0"),
752 new MatchEthernetType(34525L),
753 new MatchIcmpv6(2 as short, 3 as short),
754 new MatchIpProtocol(1 as short),
755 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
756 new NxMatchCtState(33, 33)
758 priority = IdHelper.getId(flowId)
759 tableId = 213 as short
761 new FlowEntity(123bi) => [
763 flowId = "ICMP_V6_DESTINATION_23__ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64"
764 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
766 instructionInfoList = #[
767 new InstructionApplyActions(#[
768 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
769 new ActionNxResubmit(17 as short)
773 new MatchEthernetType(34525L),
774 new MatchIpv6Destination("2001:db8:2::/64"),
775 new MatchEthernetType(34525L),
776 new MatchIpv6Source("::/0"),
777 new MatchEthernetType(34525L),
778 new MatchIcmpv6(2 as short, 3 as short),
779 new MatchIpProtocol(1 as short),
780 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
781 new NxMatchCtState(33, 33)
783 priority = IdHelper.getId(flowId)
784 tableId = 213 as short
789 override udpIngressPortRangeFlows() {
791 new FlowEntity(123bi) => [
793 flowId = "UDP_DESTINATION_2000_65532Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
795 instructionInfoList = #[
796 new InstructionApplyActions(#[
797 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
798 new ActionNxResubmit(220 as short)
802 new MatchEthernetType(34525L),
803 new MatchIpv6Source("::/0"),
804 new MatchEthernetType(34525L),
805 new NxMatchUdpDestinationPort(2000, 65532),
806 new MatchIpProtocol(17 as short),
807 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
808 new NxMatchCtState(33, 33)
810 priority = IdHelper.getId(flowId)
811 tableId = 243 as short
816 override tcpEgressRangeFlows() {
818 new FlowEntity(123bi) => [
820 flowId = "TCP_DESTINATION_776_65534Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
822 instructionInfoList = #[
823 new InstructionApplyActions(#[
824 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
825 new ActionNxResubmit(17 as short)
829 new MatchEthernetType(34525L),
830 new MatchIpv6Source("::/0"),
831 new MatchEthernetType(34525L),
832 new NxMatchTcpDestinationPort(776, 65534),
833 new MatchIpProtocol(6 as short),
834 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
835 new NxMatchCtState(33, 33)
837 priority = IdHelper.getId(flowId)
838 tableId = 213 as short
840 new FlowEntity(123bi) => [
842 flowId = "TCP_DESTINATION_512_65280Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
844 instructionInfoList = #[
845 new InstructionApplyActions(#[
846 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
847 new ActionNxResubmit(17 as short)
851 new MatchEthernetType(34525L),
852 new MatchIpv6Source("::/0"),
853 new MatchEthernetType(34525L),
854 new NxMatchTcpDestinationPort(512, 65280),
855 new MatchIpProtocol(6 as short),
856 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
857 new NxMatchCtState(33, 33)
859 priority = IdHelper.getId(flowId)
860 tableId = 213 as short
862 new FlowEntity(123bi) => [
864 flowId = "TCP_DESTINATION_334_65534Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
866 instructionInfoList = #[
867 new InstructionApplyActions(#[
868 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
869 new ActionNxResubmit(17 as short)
873 new MatchEthernetType(34525L),
874 new MatchIpv6Source("::/0"),
875 new MatchEthernetType(34525L),
876 new NxMatchTcpDestinationPort(334, 65534),
877 new MatchIpProtocol(6 as short),
878 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
879 new NxMatchCtState(33, 33)
881 priority = IdHelper.getId(flowId)
882 tableId = 213 as short
884 new FlowEntity(123bi) => [
886 flowId = "TCP_DESTINATION_333_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
888 instructionInfoList = #[
889 new InstructionApplyActions(#[
890 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
891 new ActionNxResubmit(17 as short)
895 new MatchEthernetType(34525L),
896 new MatchIpv6Source("::/0"),
897 new MatchEthernetType(34525L),
898 new NxMatchTcpDestinationPort(333, 65535),
899 new MatchIpProtocol(6 as short),
900 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
901 new NxMatchCtState(33, 33)
903 priority = IdHelper.getId(flowId)
904 tableId = 213 as short
906 new FlowEntity(123bi) => [
908 flowId = "TCP_DESTINATION_336_65520Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
910 instructionInfoList = #[
911 new InstructionApplyActions(#[
912 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
913 new ActionNxResubmit(17 as short)
917 new MatchEthernetType(34525L),
918 new MatchIpv6Source("::/0"),
919 new MatchEthernetType(34525L),
920 new NxMatchTcpDestinationPort(336, 65520),
921 new MatchIpProtocol(6 as short),
922 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
923 new NxMatchCtState(33, 33)
925 priority = IdHelper.getId(flowId)
926 tableId = 213 as short
928 new FlowEntity(123bi) => [
930 flowId = "TCP_DESTINATION_352_65504Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
932 instructionInfoList = #[
933 new InstructionApplyActions(#[
934 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
935 new ActionNxResubmit(17 as short)
939 new MatchEthernetType(34525L),
940 new MatchIpv6Source("::/0"),
941 new MatchEthernetType(34525L),
942 new NxMatchTcpDestinationPort(352, 65504),
943 new MatchIpProtocol(6 as short),
944 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
945 new NxMatchCtState(33, 33)
947 priority = IdHelper.getId(flowId)
948 tableId = 213 as short
950 new FlowEntity(123bi) => [
952 flowId = "TCP_DESTINATION_384_65408Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
954 instructionInfoList = #[
955 new InstructionApplyActions(#[
956 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
957 new ActionNxResubmit(17 as short)
961 new MatchEthernetType(34525L),
962 new MatchIpv6Source("::/0"),
963 new MatchEthernetType(34525L),
964 new NxMatchTcpDestinationPort(384, 65408),
965 new MatchIpProtocol(6 as short),
966 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
967 new NxMatchCtState(33, 33)
969 priority = IdHelper.getId(flowId)
970 tableId = 213 as short
972 new FlowEntity(123bi) => [
974 flowId = "TCP_DESTINATION_768_65528Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
976 instructionInfoList = #[
977 new InstructionApplyActions(#[
978 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
979 new ActionNxResubmit(17 as short)
983 new MatchEthernetType(34525L),
984 new MatchIpv6Source("::/0"),
985 new MatchEthernetType(34525L),
986 new NxMatchTcpDestinationPort(768, 65528),
987 new MatchIpProtocol(6 as short),
988 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
989 new NxMatchCtState(33, 33)
991 priority = IdHelper.getId(flowId)
992 tableId = 213 as short
997 override udpIngressAllFlows() {
999 new FlowEntity(123bi) => [
1000 cookie = 110100480bi
1001 flowId = "UDP_DESTINATION_1_0Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
1003 instructionInfoList = #[
1004 new InstructionApplyActions(#[
1005 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1006 new ActionNxResubmit(220 as short)
1010 new MatchEthernetType(34525L),
1011 new MatchIpv6Source("::/0"),
1012 new MatchEthernetType(34525L),
1013 new MatchIpProtocol(17 as short),
1014 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
1015 new NxMatchCtState(33, 33)
1017 priority = IdHelper.getId(flowId)
1018 tableId = 243 as short
1023 override tcpEgressAllFlows() {
1025 new FlowEntity(123bi) => [
1026 cookie = 110100480bi
1027 flowId = "TCP_DESTINATION_1_0Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
1029 instructionInfoList = #[
1030 new InstructionApplyActions(#[
1031 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1032 new ActionNxResubmit(17 as short)
1036 new MatchEthernetType(34525L),
1037 new MatchIpv6Source("::/0"),
1038 new MatchEthernetType(34525L),
1039 new MatchIpProtocol(6 as short),
1040 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
1041 new NxMatchCtState(33, 33)
1043 priority = IdHelper.getId(flowId)
1044 tableId = 213 as short
1050 override icmpIngressFlowsPort3() {
1052 new FlowEntity(123bi) => [
1053 cookie = 110100480bi
1054 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
1056 instructionInfoList = #[
1057 new InstructionApplyActions(#[
1058 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1059 new ActionNxResubmit(220 as short)
1063 new MatchEthernetType(34525L),
1064 new MatchIpv6Source("::/0"),
1065 new MatchEthernetType(34525L),
1066 new MatchIcmpv6(2 as short, 3 as short),
1067 new MatchIpProtocol(1 as short),
1068 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
1069 new NxMatchCtState(33, 33)
1071 priority = IdHelper.getId(flowId)
1072 tableId = 243 as short
1074 new FlowEntity(123bi) => [
1075 cookie = 110100480bi
1076 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426a22"
1078 instructionInfoList = #[
1079 new InstructionApplyActions(#[
1080 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1081 new ActionNxResubmit(220 as short)
1085 new MatchEthernetType(34525L),
1086 new MatchIpv6Source("::/0"),
1087 new MatchEthernetType(34525L),
1088 new MatchIcmpv6(2 as short, 3 as short),
1089 new MatchIpProtocol(1 as short),
1090 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
1091 new NxMatchCtState(33, 33)
1093 priority = IdHelper.getId(flowId)
1094 tableId = 243 as short
1099 override icmpEgressFlowsPort3() {
1101 new FlowEntity(123bi) => [
1102 cookie = 110100480bi
1103 flowId = "ICMP_V6_DESTINATION_23_Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
1105 instructionInfoList = #[
1106 new InstructionApplyActions(#[
1107 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1108 new ActionNxResubmit(17 as short)
1112 new MatchEthernetType(34525L),
1113 new MatchIpv6Source("::/0"),
1114 new MatchEthernetType(34525L),
1115 new MatchIcmpv6(2 as short, 3 as short),
1116 new MatchIpProtocol(1 as short),
1117 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
1118 new NxMatchCtState(33, 33)
1120 priority = IdHelper.getId(flowId)
1121 tableId = 213 as short
1123 new FlowEntity(123bi) => [
1124 cookie = 110100480bi
1125 flowId = "ICMP_V6_DESTINATION_23_Egress98785cc3048-abc3-43cc-89b3-377341426a21"
1127 instructionInfoList = #[
1128 new InstructionApplyActions(#[
1129 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1130 new ActionNxResubmit(17 as short)
1134 new MatchEthernetType(34525L),
1135 new MatchIpv6Source("::/0"),
1136 new MatchEthernetType(34525L),
1137 new MatchIcmpv6(2 as short, 3 as short),
1138 new MatchIpProtocol(1 as short),
1139 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
1140 new NxMatchCtState(33, 33)
1142 priority = IdHelper.getId(flowId)
1143 tableId = 213 as short