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.getFlowPriority(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.getFlowPriority(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 NxMatchCtState(33, 33)
407 priority = IdHelper.getFlowPriority(flowId)
408 tableId = 243 as short
413 override tcpIngressFlowPort2() {
415 new FlowEntity(123bi) => [
417 flowId = "TCP_DESTINATION_80_65535Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
419 instructionInfoList = #[
420 new InstructionApplyActions(#[
421 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
422 new ActionNxResubmit(220 as short)
426 new MatchEthernetType(34525L),
427 new MatchIpv6Source("::/0"),
428 new MatchEthernetType(34525L),
429 new NxMatchTcpDestinationPort(80, 65535),
430 new MatchIpProtocol(6 as short),
431 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
432 new NxMatchCtState(33, 33)
434 priority = IdHelper.getFlowPriority(flowId)
435 tableId = 243 as short
440 override tcpEgressFlowPort2() {
442 new FlowEntity(123bi) => [
444 flowId = "TCP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
445 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
447 instructionInfoList = #[
448 new InstructionApplyActions(#[
449 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
450 new ActionNxResubmit(17 as short)
454 new MatchEthernetType(34525L),
455 new MatchIpv6Destination("2001:db8:1::/64"),
456 new MatchEthernetType(34525L),
457 new MatchIpv6Source("::/0"),
458 new MatchEthernetType(34525L),
459 new NxMatchTcpDestinationPort(80, 65535),
460 new MatchIpProtocol(6 as short),
461 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
462 new NxMatchCtState(33, 33)
464 priority = IdHelper.getFlowPriority(flowId)
465 tableId = 213 as short
467 new FlowEntity(123bi) => [
469 flowId = "TCP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
471 instructionInfoList = #[
472 new InstructionApplyActions(#[
473 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
474 new ActionNxResubmit(17 as short)
478 new MatchEthernetType(34525L),
479 new MatchIpv6Destination("2001:db8:2::/64"),
480 new MatchEthernetType(34525L),
481 new MatchIpv6Source("::/0"),
482 new MatchEthernetType(34525L),
483 new NxMatchTcpDestinationPort(80, 65535),
484 new MatchIpProtocol(6 as short),
485 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
486 new NxMatchCtState(33, 33)
488 priority = IdHelper.getFlowPriority(flowId)
489 tableId = 213 as short
494 override udpEgressFlowsPort1() {
496 new FlowEntity(123bi) => [
498 flowId = "UDP_DESTINATION_80_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
500 instructionInfoList = #[
501 new InstructionApplyActions(#[
502 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
503 new ActionNxResubmit(17 as short)
507 new MatchEthernetType(34525L),
508 new MatchIpv6Source("::/0"),
509 new MatchEthernetType(34525L),
510 new NxMatchUdpDestinationPort(80, 65535),
511 new MatchIpProtocol(17 as short),
512 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
513 new NxMatchCtState(33, 33)
515 priority = IdHelper.getFlowPriority(flowId)
516 tableId = 213 as short
521 override udpIngressFlowsPort2() {
523 new FlowEntity(123bi) => [
525 flowId = "UDP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
526 +"Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
528 instructionInfoList = #[
529 new InstructionApplyActions(#[
530 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
531 new ActionNxResubmit(220 as short)
535 new MatchEthernetType(34525L),
536 new MatchIpv6Source("2001:db8:1::/64"),
537 new MatchEthernetType(34525L),
538 new MatchIpv6Source("::/0"),
539 new MatchEthernetType(34525L),
540 new NxMatchUdpDestinationPort(80, 65535),
541 new MatchIpProtocol(17 as short),
542 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
543 new NxMatchCtState(33, 33)
545 priority = IdHelper.getFlowPriority(flowId)
546 tableId = 243 as short
548 new FlowEntity(123bi) => [
550 flowId = "UDP_DESTINATION_80_65535_ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
552 instructionInfoList = #[
553 new InstructionApplyActions(#[
554 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
555 new ActionNxResubmit(220 as short)
559 new MatchEthernetType(34525L),
560 new MatchIpv6Source("2001:db8:2::/64"),
561 new MatchEthernetType(34525L),
562 new MatchIpv6Source("::/0"),
563 new MatchEthernetType(34525L),
564 new NxMatchUdpDestinationPort(80, 65535),
565 new MatchIpProtocol(17 as short),
566 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
567 new NxMatchCtState(33, 33)
569 priority = IdHelper.getFlowPriority(flowId)
570 tableId = 243 as short
575 override udpEgressFlowsPort2() {
577 new FlowEntity(123bi) => [
579 flowId = "UDP_DESTINATION_80_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
581 instructionInfoList = #[
582 new InstructionApplyActions(#[
583 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
584 new ActionNxResubmit(17 as short)
588 new MatchEthernetType(34525L),
589 new MatchIpv6Source("::/0"),
590 new MatchEthernetType(34525L),
591 new NxMatchUdpDestinationPort(80, 65535),
592 new MatchIpProtocol(17 as short),
593 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
594 new NxMatchCtState(33, 33)
596 priority = IdHelper.getFlowPriority(flowId)
597 tableId = 213 as short
602 override icmpIngressFlowsPort1() {
604 new FlowEntity(123bi) => [
606 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
608 instructionInfoList = #[
609 new InstructionApplyActions(#[
610 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
611 new ActionNxResubmit(220 as short)
615 new MatchEthernetType(34525L),
616 new MatchIpv6Source("::/0"),
617 new MatchEthernetType(34525L),
618 new MatchIcmpv6(2 as short, 3 as short),
619 new MatchIpProtocol(1 as short),
620 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
621 new NxMatchCtState(33, 33)
623 priority = IdHelper.getFlowPriority(flowId)
624 tableId = 243 as short
629 override icmpIngressFlowsPort2() {
631 new FlowEntity(123bi) => [
633 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
635 instructionInfoList = #[
636 new InstructionApplyActions(#[
637 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
638 new ActionNxResubmit(220 as short)
642 new MatchEthernetType(34525L),
643 new MatchIpv6Source("::/0"),
644 new MatchEthernetType(34525L),
645 new MatchIcmpv6(2 as short, 3 as short),
646 new MatchIpProtocol(1 as short),
647 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
648 new NxMatchCtState(33, 33)
650 priority = IdHelper.getFlowPriority(flowId)
651 tableId = 243 as short
656 override icmpEgressFlowsPort2() {
658 new FlowEntity(123bi) => [
660 flowId = "ICMP_V6_DESTINATION_23__ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F3_2001:db8:1::/64"
661 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
663 instructionInfoList = #[
664 new InstructionApplyActions(#[
665 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
666 new ActionNxResubmit(17 as short)
670 new MatchEthernetType(34525L),
671 new MatchIpv6Destination("2001:db8:1::/64"),
672 new MatchEthernetType(34525L),
673 new MatchIpv6Source("::/0"),
674 new MatchEthernetType(34525L),
675 new MatchIcmpv6(2 as short, 3 as short),
676 new MatchIpProtocol(1 as short),
677 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
678 new NxMatchCtState(33, 33)
680 priority = IdHelper.getFlowPriority(flowId)
681 tableId = 213 as short
683 new FlowEntity(123bi) => [
685 flowId = "ICMP_V6_DESTINATION_23__ipv6_remoteACL_interface_aap_0D:AA:D8:42:30:F4_2001:db8:2::/64"
686 +"Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
688 instructionInfoList = #[
689 new InstructionApplyActions(#[
690 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
691 new ActionNxResubmit(17 as short)
695 new MatchEthernetType(34525L),
696 new MatchIpv6Destination("2001:db8:2::/64"),
697 new MatchEthernetType(34525L),
698 new MatchIpv6Source("::/0"),
699 new MatchEthernetType(34525L),
700 new MatchIcmpv6(2 as short, 3 as short),
701 new MatchIpProtocol(1 as short),
702 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
703 new NxMatchCtState(33, 33)
705 priority = IdHelper.getFlowPriority(flowId)
706 tableId = 213 as short
711 override udpIngressPortRangeFlows() {
713 new FlowEntity(123bi) => [
715 flowId = "UDP_DESTINATION_2000_65532Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
717 instructionInfoList = #[
718 new InstructionApplyActions(#[
719 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
720 new ActionNxResubmit(220 as short)
724 new MatchEthernetType(34525L),
725 new MatchIpv6Source("::/0"),
726 new MatchEthernetType(34525L),
727 new NxMatchUdpDestinationPort(2000, 65532),
728 new MatchIpProtocol(17 as short),
729 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
730 new NxMatchCtState(33, 33)
732 priority = IdHelper.getFlowPriority(flowId)
733 tableId = 243 as short
738 override tcpEgressRangeFlows() {
740 new FlowEntity(123bi) => [
742 flowId = "TCP_DESTINATION_776_65534Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
744 instructionInfoList = #[
745 new InstructionApplyActions(#[
746 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
747 new ActionNxResubmit(17 as short)
751 new MatchEthernetType(34525L),
752 new MatchIpv6Source("::/0"),
753 new MatchEthernetType(34525L),
754 new NxMatchTcpDestinationPort(776, 65534),
755 new MatchIpProtocol(6 as short),
756 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
757 new NxMatchCtState(33, 33)
759 priority = IdHelper.getFlowPriority(flowId)
760 tableId = 213 as short
762 new FlowEntity(123bi) => [
764 flowId = "TCP_DESTINATION_512_65280Egress98785cc3048-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 MatchIpv6Source("::/0"),
775 new MatchEthernetType(34525L),
776 new NxMatchTcpDestinationPort(512, 65280),
777 new MatchIpProtocol(6 as short),
778 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
779 new NxMatchCtState(33, 33)
781 priority = IdHelper.getFlowPriority(flowId)
782 tableId = 213 as short
784 new FlowEntity(123bi) => [
786 flowId = "TCP_DESTINATION_334_65534Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
788 instructionInfoList = #[
789 new InstructionApplyActions(#[
790 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
791 new ActionNxResubmit(17 as short)
795 new MatchEthernetType(34525L),
796 new MatchIpv6Source("::/0"),
797 new MatchEthernetType(34525L),
798 new NxMatchTcpDestinationPort(334, 65534),
799 new MatchIpProtocol(6 as short),
800 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
801 new NxMatchCtState(33, 33)
803 priority = IdHelper.getFlowPriority(flowId)
804 tableId = 213 as short
806 new FlowEntity(123bi) => [
808 flowId = "TCP_DESTINATION_333_65535Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
810 instructionInfoList = #[
811 new InstructionApplyActions(#[
812 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
813 new ActionNxResubmit(17 as short)
817 new MatchEthernetType(34525L),
818 new MatchIpv6Source("::/0"),
819 new MatchEthernetType(34525L),
820 new NxMatchTcpDestinationPort(333, 65535),
821 new MatchIpProtocol(6 as short),
822 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
823 new NxMatchCtState(33, 33)
825 priority = IdHelper.getFlowPriority(flowId)
826 tableId = 213 as short
828 new FlowEntity(123bi) => [
830 flowId = "TCP_DESTINATION_336_65520Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
832 instructionInfoList = #[
833 new InstructionApplyActions(#[
834 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
835 new ActionNxResubmit(17 as short)
839 new MatchEthernetType(34525L),
840 new MatchIpv6Source("::/0"),
841 new MatchEthernetType(34525L),
842 new NxMatchTcpDestinationPort(336, 65520),
843 new MatchIpProtocol(6 as short),
844 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
845 new NxMatchCtState(33, 33)
847 priority = IdHelper.getFlowPriority(flowId)
848 tableId = 213 as short
850 new FlowEntity(123bi) => [
852 flowId = "TCP_DESTINATION_352_65504Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
854 instructionInfoList = #[
855 new InstructionApplyActions(#[
856 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
857 new ActionNxResubmit(17 as short)
861 new MatchEthernetType(34525L),
862 new MatchIpv6Source("::/0"),
863 new MatchEthernetType(34525L),
864 new NxMatchTcpDestinationPort(352, 65504),
865 new MatchIpProtocol(6 as short),
866 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
867 new NxMatchCtState(33, 33)
869 priority = IdHelper.getFlowPriority(flowId)
870 tableId = 213 as short
872 new FlowEntity(123bi) => [
874 flowId = "TCP_DESTINATION_384_65408Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
876 instructionInfoList = #[
877 new InstructionApplyActions(#[
878 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
879 new ActionNxResubmit(17 as short)
883 new MatchEthernetType(34525L),
884 new MatchIpv6Source("::/0"),
885 new MatchEthernetType(34525L),
886 new NxMatchTcpDestinationPort(384, 65408),
887 new MatchIpProtocol(6 as short),
888 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
889 new NxMatchCtState(33, 33)
891 priority = IdHelper.getFlowPriority(flowId)
892 tableId = 213 as short
894 new FlowEntity(123bi) => [
896 flowId = "TCP_DESTINATION_768_65528Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
898 instructionInfoList = #[
899 new InstructionApplyActions(#[
900 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
901 new ActionNxResubmit(17 as short)
905 new MatchEthernetType(34525L),
906 new MatchIpv6Source("::/0"),
907 new MatchEthernetType(34525L),
908 new NxMatchTcpDestinationPort(768, 65528),
909 new MatchIpProtocol(6 as short),
910 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
911 new NxMatchCtState(33, 33)
913 priority = IdHelper.getFlowPriority(flowId)
914 tableId = 213 as short
919 override udpIngressAllFlows() {
921 new FlowEntity(123bi) => [
923 flowId = "UDP_DESTINATION_1_0Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
925 instructionInfoList = #[
926 new InstructionApplyActions(#[
927 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
928 new ActionNxResubmit(220 as short)
932 new MatchEthernetType(34525L),
933 new MatchIpv6Source("::/0"),
934 new MatchEthernetType(34525L),
935 new MatchIpProtocol(17 as short),
936 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
937 new NxMatchCtState(33, 33)
939 priority = IdHelper.getFlowPriority(flowId)
940 tableId = 243 as short
945 override tcpEgressAllFlows() {
947 new FlowEntity(123bi) => [
949 flowId = "TCP_DESTINATION_1_0Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
951 instructionInfoList = #[
952 new InstructionApplyActions(#[
953 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
954 new ActionNxResubmit(17 as short)
958 new MatchEthernetType(34525L),
959 new MatchIpv6Source("::/0"),
960 new MatchEthernetType(34525L),
961 new MatchIpProtocol(6 as short),
962 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
963 new NxMatchCtState(33, 33)
965 priority = IdHelper.getFlowPriority(flowId)
966 tableId = 213 as short
972 override icmpIngressFlowsPort3() {
974 new FlowEntity(123bi) => [
976 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426ac7"
978 instructionInfoList = #[
979 new InstructionApplyActions(#[
980 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
981 new ActionNxResubmit(220 as short)
985 new MatchEthernetType(34525L),
986 new MatchIpv6Source("::/0"),
987 new MatchEthernetType(34525L),
988 new MatchIcmpv6(2 as short, 3 as short),
989 new MatchIpProtocol(1 as short),
990 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
991 new NxMatchCtState(33, 33)
993 priority = IdHelper.getFlowPriority(flowId)
994 tableId = 243 as short
996 new FlowEntity(123bi) => [
998 flowId = "ICMP_V6_DESTINATION_23_Ingress98785cc3048-abc3-43cc-89b3-377341426a22"
1000 instructionInfoList = #[
1001 new InstructionApplyActions(#[
1002 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1003 new ActionNxResubmit(220 as short)
1007 new MatchEthernetType(34525L),
1008 new MatchIpv6Source("::/0"),
1009 new MatchEthernetType(34525L),
1010 new MatchIcmpv6(2 as short, 3 as short),
1011 new MatchIpProtocol(1 as short),
1012 new NxMatchRegister(NxmNxReg6, 252672L, 268435200L),
1013 new NxMatchCtState(33, 33)
1015 priority = IdHelper.getFlowPriority(flowId)
1016 tableId = 243 as short
1021 override icmpEgressFlowsPort3() {
1023 new FlowEntity(123bi) => [
1024 cookie = 110100480bi
1025 flowId = "ICMP_V6_DESTINATION_23_Egress98785cc3048-abc3-43cc-89b3-377341426ac6"
1027 instructionInfoList = #[
1028 new InstructionApplyActions(#[
1029 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1030 new ActionNxResubmit(17 as short)
1034 new MatchEthernetType(34525L),
1035 new MatchIpv6Source("::/0"),
1036 new MatchEthernetType(34525L),
1037 new MatchIcmpv6(2 as short, 3 as short),
1038 new MatchIpProtocol(1 as short),
1039 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
1040 new NxMatchCtState(33, 33)
1042 priority = IdHelper.getFlowPriority(flowId)
1043 tableId = 213 as short
1045 new FlowEntity(123bi) => [
1046 cookie = 110100480bi
1047 flowId = "ICMP_V6_DESTINATION_23_Egress98785cc3048-abc3-43cc-89b3-377341426a21"
1049 instructionInfoList = #[
1050 new InstructionApplyActions(#[
1051 new ActionNxConntrack(2, 1, 0, 5000, 255 as short),
1052 new ActionNxResubmit(17 as short)
1056 new MatchEthernetType(34525L),
1057 new MatchIpv6Source("::/0"),
1058 new MatchEthernetType(34525L),
1059 new MatchIcmpv6(2 as short, 3 as short),
1060 new MatchIpProtocol(1 as short),
1061 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG),
1062 new NxMatchCtState(33, 33)
1064 priority = IdHelper.getFlowPriority(flowId)
1065 tableId = 213 as short