2 * Copyright (c) 2016 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.ActionNxResubmit
11 import org.opendaylight.genius.mdsalutil.FlowEntity
12 import org.opendaylight.genius.mdsalutil.MetaDataUtil
13 import org.opendaylight.genius.mdsalutil.instructions.InstructionApplyActions
14 import org.opendaylight.genius.mdsalutil.matches.MatchArpSha
15 import org.opendaylight.genius.mdsalutil.matches.MatchEthernetType
16 import org.opendaylight.genius.mdsalutil.matches.MatchIcmpv6
17 import org.opendaylight.genius.mdsalutil.matches.MatchIpProtocol
18 import org.opendaylight.genius.mdsalutil.matches.MatchUdpDestinationPort
19 import org.opendaylight.genius.mdsalutil.matches.MatchUdpSourcePort
20 import org.opendaylight.genius.mdsalutil.matches.MatchMetadata
21 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.MacAddress
23 class FlowEntryObjectsBase {
25 protected def fixedFlowsPort1() {
26 #[ fixedIngressFlowsPort1, fixedEgressFlowsPort1 ]
29 protected def fixedIngressFlowsPort1() {
31 new FlowEntity(123bi) => [
33 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
35 instructionInfoList = #[
36 new InstructionApplyActions(#[
37 new ActionNxResubmit(220 as short)
41 new MatchEthernetType(2048L),
42 new MatchIpProtocol(17 as short),
43 new MatchUdpDestinationPort(68),
44 new MatchUdpSourcePort(67),
45 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
48 tableId = 241 as short
50 new FlowEntity(123bi) => [
52 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
54 instructionInfoList = #[
55 new InstructionApplyActions(#[
56 new ActionNxResubmit(220 as short)
60 new MatchEthernetType(34525L),
61 new MatchIpProtocol(17 as short),
62 new MatchUdpDestinationPort(546),
63 new MatchUdpSourcePort(547),
64 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
67 tableId = 241 as short
69 new FlowEntity(123bi) => [
71 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
73 instructionInfoList = #[
74 new InstructionApplyActions(#[
75 new ActionNxResubmit(220 as short)
79 new MatchEthernetType(34525L),
80 new MatchIpProtocol(58 as short),
81 new MatchIcmpv6(130 as short, 0 as short),
82 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
85 tableId = 241 as short
87 new FlowEntity(123bi) => [
89 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
91 instructionInfoList = #[
92 new InstructionApplyActions(#[
93 new ActionNxResubmit(220 as short)
97 new MatchEthernetType(34525L),
98 new MatchIpProtocol(58 as short),
99 new MatchIcmpv6(135 as short, 0 as short),
100 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
103 tableId = 241 as short
105 new FlowEntity(123bi) => [
107 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
109 instructionInfoList = #[
110 new InstructionApplyActions(#[
111 new ActionNxResubmit(220 as short)
115 new MatchEthernetType(34525L),
116 new MatchIpProtocol(58 as short),
117 new MatchIcmpv6(136 as short, 0 as short),
118 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
121 tableId = 241 as short
123 new FlowEntity(123bi) => [
125 flowId = "Ingress_ARP_123_987"
127 instructionInfoList = #[
128 new InstructionApplyActions(#[
129 new ActionNxResubmit(220 as short)
133 new MatchEthernetType(2054L),
134 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
137 tableId = 241 as short
143 protected def fixedEgressFlowsPort1() {
146 new FlowEntity(123bi) => [
148 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
150 instructionInfoList = #[
151 new InstructionApplyActions(#[
152 new ActionNxResubmit(17 as short)
156 new MatchEthernetType(2048L),
157 new MatchIpProtocol(17 as short),
158 new MatchUdpDestinationPort(67),
159 new MatchUdpSourcePort(68),
160 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
163 tableId = 211 as short
165 new FlowEntity(123bi) => [
167 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
169 instructionInfoList = #[
170 new InstructionApplyActions(#[
171 new ActionNxResubmit(17 as short)
175 new MatchEthernetType(34525L),
176 new MatchIpProtocol(17 as short),
177 new MatchUdpDestinationPort(547),
178 new MatchUdpSourcePort(546),
179 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
182 tableId = 211 as short
184 new FlowEntity(123bi) => [
186 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
188 instructionInfoList = #[
191 new MatchEthernetType(2048L),
192 new MatchIpProtocol(17 as short),
193 new MatchUdpDestinationPort(68),
194 new MatchUdpSourcePort(67),
195 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
198 tableId = 211 as short
200 new FlowEntity(123bi) => [
202 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
204 instructionInfoList = #[
207 new MatchEthernetType(34525L),
208 new MatchIpProtocol(17 as short),
209 new MatchUdpDestinationPort(546),
210 new MatchUdpSourcePort(547),
211 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
214 tableId = 211 as short
216 new FlowEntity(123bi) => [
218 flowId = "Egress_ICMPv6_123_987_134_Drop_"
220 instructionInfoList = #[
223 new MatchEthernetType(34525L),
224 new MatchIpProtocol(58 as short),
225 new MatchIcmpv6(134 as short, 0 as short),
226 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
229 tableId = 211 as short
231 new FlowEntity(123bi) => [
233 flowId = "Egress_ICMPv6_123_987_133_Permit_"
235 instructionInfoList = #[
236 new InstructionApplyActions(#[
237 new ActionNxResubmit(17 as short)
241 new MatchEthernetType(34525L),
242 new MatchIpProtocol(58 as short),
243 new MatchIcmpv6(133 as short, 0 as short),
244 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
247 tableId = 211 as short
249 new FlowEntity(123bi) => [
251 flowId = "Egress_ICMPv6_123_987_135_Permit_"
253 instructionInfoList = #[
254 new InstructionApplyActions(#[
255 new ActionNxResubmit(17 as short)
259 new MatchEthernetType(34525L),
260 new MatchIpProtocol(58 as short),
261 new MatchIcmpv6(135 as short, 0 as short),
262 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
265 tableId = 211 as short
267 new FlowEntity(123bi) => [
269 flowId = "Egress_ICMPv6_123_987_136_Permit_"
271 instructionInfoList = #[
272 new InstructionApplyActions(#[
273 new ActionNxResubmit(17 as short)
277 new MatchEthernetType(34525L),
278 new MatchIpProtocol(58 as short),
279 new MatchIcmpv6(136 as short, 0 as short),
280 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
283 tableId = 211 as short
285 new FlowEntity(123bi) => [
287 flowId = "Egress_ARP_123_987_0D:AA:D8:42:30:F3"
289 instructionInfoList = #[
290 new InstructionApplyActions(#[
291 new ActionNxResubmit(17 as short)
295 new MatchEthernetType(2054L),
296 new MatchArpSha(new MacAddress("0D:AA:D8:42:30:F3")),
297 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
300 tableId = 211 as short
306 protected def fixedIngressFlowsPort2() {
308 new FlowEntity(123bi) => [
310 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
312 instructionInfoList = #[
313 new InstructionApplyActions(#[
314 new ActionNxResubmit(220 as short)
318 new MatchEthernetType(2048L),
319 new MatchIpProtocol(17 as short),
320 new MatchUdpDestinationPort(68),
321 new MatchUdpSourcePort(67),
322 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
325 tableId = 241 as short
327 new FlowEntity(123bi) => [
329 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
331 instructionInfoList = #[
332 new InstructionApplyActions(#[
333 new ActionNxResubmit(220 as short)
337 new MatchEthernetType(34525L),
338 new MatchIpProtocol(17 as short),
339 new MatchUdpDestinationPort(546),
340 new MatchUdpSourcePort(547),
341 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
344 tableId = 241 as short
346 new FlowEntity(123bi) => [
348 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
350 instructionInfoList = #[
351 new InstructionApplyActions(#[
352 new ActionNxResubmit(220 as short)
356 new MatchEthernetType(34525L),
357 new MatchIpProtocol(58 as short),
358 new MatchIcmpv6(130 as short, 0 as short),
359 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
362 tableId = 241 as short
364 new FlowEntity(123bi) => [
366 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
368 instructionInfoList = #[
369 new InstructionApplyActions(#[
370 new ActionNxResubmit(220 as short)
374 new MatchEthernetType(34525L),
375 new MatchIpProtocol(58 as short),
376 new MatchIcmpv6(135 as short, 0 as short),
377 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
380 tableId = 241 as short
382 new FlowEntity(123bi) => [
384 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
386 instructionInfoList = #[
387 new InstructionApplyActions(#[
388 new ActionNxResubmit(220 as short)
392 new MatchEthernetType(34525L),
393 new MatchIpProtocol(58 as short),
394 new MatchIcmpv6(136 as short, 0 as short),
395 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
398 tableId = 241 as short
400 new FlowEntity(123bi) => [
402 flowId = "Ingress_ARP_123_987"
404 instructionInfoList = #[
405 new InstructionApplyActions(#[
406 new ActionNxResubmit(220 as short)
410 new MatchEthernetType(2054L),
411 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
414 tableId = 241 as short
419 protected def fixedEgressFlowsPort2 () {
421 new FlowEntity(123bi) => [
423 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
425 instructionInfoList = #[
426 new InstructionApplyActions(#[
427 new ActionNxResubmit(17 as short)
431 new MatchEthernetType(2048L),
432 new MatchIpProtocol(17 as short),
433 new MatchUdpDestinationPort(67 as short),
434 new MatchUdpSourcePort(68 as short),
435 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
438 tableId = 211 as short
440 new FlowEntity(123bi) => [
442 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
444 instructionInfoList = #[
445 new InstructionApplyActions(#[
446 new ActionNxResubmit(17 as short)
450 new MatchEthernetType(34525L),
451 new MatchIpProtocol(17 as short),
452 new MatchUdpDestinationPort(547 as short),
453 new MatchUdpSourcePort(546 as short),
454 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
457 tableId = 211 as short
459 new FlowEntity(123bi) => [
461 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
463 instructionInfoList = #[
466 new MatchEthernetType(2048L),
467 new MatchIpProtocol(17 as short),
468 new MatchUdpDestinationPort(68 as short),
469 new MatchUdpSourcePort(67 as short),
470 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
473 tableId = 211 as short
475 new FlowEntity(123bi) => [
477 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
479 instructionInfoList = #[
482 new MatchEthernetType(34525L),
483 new MatchIpProtocol(17 as short),
484 new MatchUdpDestinationPort(546 as short),
485 new MatchUdpSourcePort(547 as short),
486 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
489 tableId = 211 as short
491 new FlowEntity(123bi) => [
493 flowId = "Egress_ICMPv6_123_987_134_Drop_"
495 instructionInfoList = #[
498 new MatchEthernetType(34525L),
499 new MatchIpProtocol(58 as short),
500 new MatchIcmpv6(134 as short, 0 as short),
501 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
504 tableId = 211 as short
506 new FlowEntity(123bi) => [
508 flowId = "Egress_ICMPv6_123_987_133_Permit_"
510 instructionInfoList = #[
511 new InstructionApplyActions(#[
512 new ActionNxResubmit(17 as short)
516 new MatchEthernetType(34525L),
517 new MatchIpProtocol(58 as short),
518 new MatchIcmpv6(133 as short, 0 as short),
519 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
522 tableId = 211 as short
524 new FlowEntity(123bi) => [
526 flowId = "Egress_ICMPv6_123_987_135_Permit_"
528 instructionInfoList = #[
529 new InstructionApplyActions(#[
530 new ActionNxResubmit(17 as short)
534 new MatchEthernetType(34525L),
535 new MatchIpProtocol(58 as short),
536 new MatchIcmpv6(135 as short, 0 as short),
537 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
540 tableId = 211 as short
542 new FlowEntity(123bi) => [
544 flowId = "Egress_ICMPv6_123_987_136_Permit_"
546 instructionInfoList = #[
547 new InstructionApplyActions(#[
548 new ActionNxResubmit(17 as short)
552 new MatchEthernetType(34525L),
553 new MatchIpProtocol(58 as short),
554 new MatchIcmpv6(136 as short, 0 as short),
555 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
558 tableId = 211 as short
560 new FlowEntity(123bi) => [
562 flowId = "Egress_ARP_123_987_0D:AA:D8:42:30:F4"
564 instructionInfoList = #[
565 new InstructionApplyActions(#[
566 new ActionNxResubmit(17 as short)
570 new MatchEthernetType(2054L),
571 new MatchArpSha(new MacAddress("0D:AA:D8:42:30:F4")),
572 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
575 tableId = 211 as short
581 protected def fixedIngressFlowsPort3() {
583 new FlowEntity(123bi) => [
585 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
587 instructionInfoList = #[
588 new InstructionApplyActions(#[
589 new ActionNxResubmit(220 as short)
593 new MatchEthernetType(2048L),
594 new MatchIpProtocol(17 as short),
595 new MatchUdpDestinationPort(68),
596 new MatchUdpSourcePort(67),
597 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
600 tableId = 241 as short
602 new FlowEntity(123bi) => [
604 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
606 instructionInfoList = #[
607 new InstructionApplyActions(#[
608 new ActionNxResubmit(220 as short)
612 new MatchEthernetType(34525L),
613 new MatchIpProtocol(17 as short),
614 new MatchUdpDestinationPort(546),
615 new MatchUdpSourcePort(547),
616 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
619 tableId = 241 as short
621 new FlowEntity(123bi) => [
623 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
625 instructionInfoList = #[
626 new InstructionApplyActions(#[
627 new ActionNxResubmit(220 as short)
631 new MatchEthernetType(34525L),
632 new MatchIpProtocol(58 as short),
633 new MatchIcmpv6(130 as short, 0 as short),
634 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
637 tableId = 241 as short
639 new FlowEntity(123bi) => [
641 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
643 instructionInfoList = #[
644 new InstructionApplyActions(#[
645 new ActionNxResubmit(220 as short)
649 new MatchEthernetType(34525L),
650 new MatchIpProtocol(58 as short),
651 new MatchIcmpv6(135 as short, 0 as short),
652 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
655 tableId = 241 as short
657 new FlowEntity(123bi) => [
659 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
661 instructionInfoList = #[
662 new InstructionApplyActions(#[
663 new ActionNxResubmit(220 as short)
667 new MatchEthernetType(34525L),
668 new MatchIpProtocol(58 as short),
669 new MatchIcmpv6(136 as short, 0 as short),
670 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
673 tableId = 241 as short
675 new FlowEntity(123bi) => [
677 flowId = "Ingress_ARP_123_987"
679 instructionInfoList = #[
680 new InstructionApplyActions(#[
681 new ActionNxResubmit(220 as short)
685 new MatchEthernetType(2054L),
686 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
689 tableId = 241 as short
694 protected def fixedEgressFlowsPort3 () {
696 new FlowEntity(123bi) => [
698 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
700 instructionInfoList = #[
701 new InstructionApplyActions(#[
702 new ActionNxResubmit(17 as short)
706 new MatchEthernetType(2048L),
707 new MatchIpProtocol(17 as short),
708 new MatchUdpDestinationPort(67),
709 new MatchUdpSourcePort(68),
710 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
713 tableId = 211 as short
715 new FlowEntity(123bi) => [
717 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
719 instructionInfoList = #[
720 new InstructionApplyActions(#[
721 new ActionNxResubmit(17 as short)
725 new MatchEthernetType(34525L),
726 new MatchIpProtocol(17 as short),
727 new MatchUdpDestinationPort(547),
728 new MatchUdpSourcePort(546),
729 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
732 tableId = 211 as short
734 new FlowEntity(123bi) => [
736 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
738 instructionInfoList = #[
741 new MatchEthernetType(2048L),
742 new MatchIpProtocol(17 as short),
743 new MatchUdpDestinationPort(68),
744 new MatchUdpSourcePort(67),
745 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
748 tableId = 211 as short
750 new FlowEntity(123bi) => [
752 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
754 instructionInfoList = #[
757 new MatchEthernetType(34525L),
758 new MatchIpProtocol(17 as short),
759 new MatchUdpDestinationPort(546),
760 new MatchUdpSourcePort(547),
761 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
764 tableId = 211 as short
766 new FlowEntity(123bi) => [
768 flowId = "Egress_ICMPv6_123_987_134_Drop_"
770 instructionInfoList = #[
773 new MatchEthernetType(34525L),
774 new MatchIpProtocol(58 as short),
775 new MatchIcmpv6(134 as short, 0 as short),
776 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
779 tableId = 211 as short
781 new FlowEntity(123bi) => [
783 flowId = "Egress_ICMPv6_123_987_133_Permit_"
785 instructionInfoList = #[
786 new InstructionApplyActions(#[
787 new ActionNxResubmit(17 as short)
791 new MatchEthernetType(34525L),
792 new MatchIpProtocol(58 as short),
793 new MatchIcmpv6(133 as short, 0 as short),
794 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
797 tableId = 211 as short
799 new FlowEntity(123bi) => [
801 flowId = "Egress_ICMPv6_123_987_135_Permit_"
803 instructionInfoList = #[
804 new InstructionApplyActions(#[
805 new ActionNxResubmit(17 as short)
809 new MatchEthernetType(34525L),
810 new MatchIpProtocol(58 as short),
811 new MatchIcmpv6(135 as short, 0 as short),
812 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
815 tableId = 211 as short
817 new FlowEntity(123bi) => [
819 flowId = "Egress_ICMPv6_123_987_136_Permit_"
821 instructionInfoList = #[
822 new InstructionApplyActions(#[
823 new ActionNxResubmit(17 as short)
827 new MatchEthernetType(34525L),
828 new MatchIpProtocol(58 as short),
829 new MatchIcmpv6(136 as short, 0 as short),
830 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
833 tableId = 211 as short
835 new FlowEntity(123bi) => [
837 flowId = "Egress_ARP_123_987_0D:AA:D8:42:30:F5"
839 instructionInfoList = #[
840 new InstructionApplyActions(#[
841 new ActionNxResubmit(17 as short)
845 new MatchEthernetType(2054L),
846 new MatchArpSha(new MacAddress("0D:AA:D8:42:30:F5")),
847 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
850 tableId = 211 as short
855 static def fixedIngressFlowsPort4() {
857 new FlowEntity(123bi) => [
859 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
861 instructionInfoList = #[
862 new InstructionApplyActions(#[
863 new ActionNxResubmit(220 as short)
867 new MatchEthernetType(2048L),
868 new MatchIpProtocol(17 as short),
869 new MatchUdpDestinationPort(68),
870 new MatchUdpSourcePort(67),
871 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
874 tableId = 241 as short
876 new FlowEntity(123bi) => [
878 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
880 instructionInfoList = #[
881 new InstructionApplyActions(#[
882 new ActionNxResubmit(220 as short)
886 new MatchEthernetType(34525L),
887 new MatchIpProtocol(17 as short),
888 new MatchUdpDestinationPort(546),
889 new MatchUdpSourcePort(547),
890 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
893 tableId = 241 as short
895 new FlowEntity(123bi) => [
897 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
899 instructionInfoList = #[
900 new InstructionApplyActions(#[
901 new ActionNxResubmit(220 as short)
905 new MatchEthernetType(34525L),
906 new MatchIpProtocol(58 as short),
907 new MatchIcmpv6(130 as short, 0 as short),
908 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
911 tableId = 241 as short
913 new FlowEntity(123bi) => [
915 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
917 instructionInfoList = #[
918 new InstructionApplyActions(#[
919 new ActionNxResubmit(220 as short)
923 new MatchEthernetType(34525L),
924 new MatchIpProtocol(58 as short),
925 new MatchIcmpv6(135 as short, 0 as short),
926 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
929 tableId = 241 as short
931 new FlowEntity(123bi) => [
933 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
935 instructionInfoList = #[
936 new InstructionApplyActions(#[
937 new ActionNxResubmit(220 as short)
941 new MatchEthernetType(34525L),
942 new MatchIpProtocol(58 as short),
943 new MatchIcmpv6(136 as short, 0 as short),
944 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
947 tableId = 241 as short
949 new FlowEntity(123bi) => [
951 flowId = "Ingress_ARP_123_987"
953 instructionInfoList = #[
954 new InstructionApplyActions(#[
955 new ActionNxResubmit(220 as short)
959 new MatchEthernetType(2054L),
960 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
963 tableId = 241 as short
968 static def fixedEgressFlowsPort4 () {
970 new FlowEntity(123bi) => [
972 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
974 instructionInfoList = #[
975 new InstructionApplyActions(#[
976 new ActionNxResubmit(17 as short)
980 new MatchEthernetType(2048L),
981 new MatchIpProtocol(17 as short),
982 new MatchUdpDestinationPort(67),
983 new MatchUdpSourcePort(68),
984 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
987 tableId = 211 as short
989 new FlowEntity(123bi) => [
991 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
993 instructionInfoList = #[
994 new InstructionApplyActions(#[
995 new ActionNxResubmit(17 as short)
999 new MatchEthernetType(34525L),
1000 new MatchIpProtocol(17 as short),
1001 new MatchUdpDestinationPort(547),
1002 new MatchUdpSourcePort(546),
1003 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1006 tableId = 211 as short
1008 new FlowEntity(123bi) => [
1009 cookie = 110100480bi
1010 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
1012 instructionInfoList = #[
1015 new MatchEthernetType(2048L),
1016 new MatchIpProtocol(17 as short),
1017 new MatchUdpDestinationPort(68),
1018 new MatchUdpSourcePort(67),
1019 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1022 tableId = 211 as short
1024 new FlowEntity(123bi) => [
1025 cookie = 110100480bi
1026 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
1028 instructionInfoList = #[
1031 new MatchEthernetType(34525L),
1032 new MatchIpProtocol(17 as short),
1033 new MatchUdpDestinationPort(546),
1034 new MatchUdpSourcePort(547),
1035 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1038 tableId = 211 as short
1040 new FlowEntity(123bi) => [
1041 cookie = 110100480bi
1042 flowId = "Egress_ICMPv6_123_987_134_Drop_"
1044 instructionInfoList = #[
1047 new MatchEthernetType(34525L),
1048 new MatchIpProtocol(58 as short),
1049 new MatchIcmpv6(134 as short, 0 as short),
1050 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1053 tableId = 211 as short
1055 new FlowEntity(123bi) => [
1056 cookie = 110100480bi
1057 flowId = "Egress_ICMPv6_123_987_133_Permit_"
1059 instructionInfoList = #[
1060 new InstructionApplyActions(#[
1061 new ActionNxResubmit(17 as short)
1065 new MatchEthernetType(34525L),
1066 new MatchIpProtocol(58 as short),
1067 new MatchIcmpv6(133 as short, 0 as short),
1068 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1071 tableId = 211 as short
1073 new FlowEntity(123bi) => [
1074 cookie = 110100480bi
1075 flowId = "Egress_ICMPv6_123_987_135_Permit_"
1077 instructionInfoList = #[
1078 new InstructionApplyActions(#[
1079 new ActionNxResubmit(17 as short)
1083 new MatchEthernetType(34525L),
1084 new MatchIpProtocol(58 as short),
1085 new MatchIcmpv6(135 as short, 0 as short),
1086 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1089 tableId = 211 as short
1091 new FlowEntity(123bi) => [
1092 cookie = 110100480bi
1093 flowId = "Egress_ICMPv6_123_987_136_Permit_"
1095 instructionInfoList = #[
1096 new InstructionApplyActions(#[
1097 new ActionNxResubmit(17 as short)
1101 new MatchEthernetType(34525L),
1102 new MatchIpProtocol(58 as short),
1103 new MatchIcmpv6(136 as short, 0 as short),
1104 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1107 tableId = 211 as short
1109 new FlowEntity(123bi) => [
1110 cookie = 110100480bi
1111 flowId = "Egress_ARP_123_0D:AA:D8:42:30:F6"
1113 instructionInfoList = #[
1114 new InstructionApplyActions(#[
1115 new ActionNxResubmit(17 as short)
1119 new MatchEthernetType(2054L),
1120 new MatchArpSha(new MacAddress("0D:AA:D8:42:30:F6")),
1121 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1124 tableId = 211 as short
1126 new FlowEntity(123bi) => [
1127 cookie = 110100480bi
1128 flowId = "Egress_ARP_123_0D:AA:D8:42:30:F6"
1130 instructionInfoList = #[
1131 new InstructionApplyActions(#[
1132 new ActionNxResubmit(17 as short)
1136 new MatchEthernetType(2054L),
1137 new MatchArpSha(new MacAddress("0D:AA:D8:42:30:F6")),
1138 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1141 tableId = 211 as short
1146 protected def expectedFlows(String mac) {
1147 // Code auto. generated by https://github.com/vorburger/xtendbeans
1149 new FlowEntity(123bi) => [
1150 cookie = 110100480bi
1151 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
1153 instructionInfoList = #[
1154 new InstructionApplyActions(#[
1155 new ActionNxResubmit(220 as short)
1159 new MatchEthernetType(2048L),
1160 new MatchIpProtocol(17 as short),
1161 new MatchUdpDestinationPort(68),
1162 new MatchUdpSourcePort(67),
1163 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1166 tableId = 241 as short
1168 new FlowEntity(123bi) => [
1169 cookie = 110100480bi
1170 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
1172 instructionInfoList = #[
1173 new InstructionApplyActions(#[
1174 new ActionNxResubmit(220 as short)
1178 new MatchEthernetType(34525L),
1179 new MatchIpProtocol(17 as short),
1180 new MatchUdpDestinationPort(546),
1181 new MatchUdpSourcePort(547),
1182 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1185 tableId = 241 as short
1187 new FlowEntity(123bi) => [
1188 cookie = 110100480bi
1189 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
1191 instructionInfoList = #[
1192 new InstructionApplyActions(#[
1193 new ActionNxResubmit(220 as short)
1197 new MatchEthernetType(34525L),
1198 new MatchIpProtocol(58 as short),
1199 new MatchIcmpv6(130 as short, 0 as short),
1200 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1203 tableId = 241 as short
1205 new FlowEntity(123bi) => [
1206 cookie = 110100480bi
1207 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
1209 instructionInfoList = #[
1210 new InstructionApplyActions(#[
1211 new ActionNxResubmit(220 as short)
1215 new MatchEthernetType(34525L),
1216 new MatchIpProtocol(58 as short),
1217 new MatchIcmpv6(135 as short, 0 as short),
1218 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1221 tableId = 241 as short
1223 new FlowEntity(123bi) => [
1224 cookie = 110100480bi
1225 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
1227 instructionInfoList = #[
1228 new InstructionApplyActions(#[
1229 new ActionNxResubmit(220 as short)
1233 new MatchEthernetType(34525L),
1234 new MatchIpProtocol(58 as short),
1235 new MatchIcmpv6(136 as short, 0 as short),
1236 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1239 tableId = 241 as short
1241 new FlowEntity(123bi) => [
1242 cookie = 110100480bi
1243 flowId = "Ingress_ARP_123_987"
1245 instructionInfoList = #[
1246 new InstructionApplyActions(#[
1247 new ActionNxResubmit(220 as short)
1251 new MatchEthernetType(2054L),
1252 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1255 tableId = 241 as short
1257 new FlowEntity(123bi) => [
1258 cookie = 110100480bi
1259 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
1261 instructionInfoList = #[
1262 new InstructionApplyActions(#[
1263 new ActionNxResubmit(17 as short)
1267 new MatchEthernetType(2048L),
1268 new MatchIpProtocol(17 as short),
1269 new MatchUdpDestinationPort(67),
1270 new MatchUdpSourcePort(68),
1271 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1274 tableId = 211 as short
1276 new FlowEntity(123bi) => [
1277 cookie = 110100480bi
1278 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
1280 instructionInfoList = #[
1281 new InstructionApplyActions(#[
1282 new ActionNxResubmit(17 as short)
1286 new MatchEthernetType(34525L),
1287 new MatchIpProtocol(17 as short),
1288 new MatchUdpDestinationPort(547),
1289 new MatchUdpSourcePort(546),
1290 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1293 tableId = 211 as short
1295 new FlowEntity(123bi) => [
1296 cookie = 110100480bi
1297 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
1299 instructionInfoList = #[
1302 new MatchEthernetType(2048L),
1303 new MatchIpProtocol(17 as short),
1304 new MatchUdpDestinationPort(68),
1305 new MatchUdpSourcePort(67),
1306 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1309 tableId = 211 as short
1311 new FlowEntity(123bi) => [
1312 cookie = 110100480bi
1313 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
1315 instructionInfoList = #[
1318 new MatchEthernetType(34525L),
1319 new MatchIpProtocol(17 as short),
1320 new MatchUdpDestinationPort(546),
1321 new MatchUdpSourcePort(547),
1322 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1325 tableId = 211 as short
1327 new FlowEntity(123bi) => [
1328 cookie = 110100480bi
1329 flowId = "Egress_ICMPv6_123_987_134_Drop_"
1331 instructionInfoList = #[
1334 new MatchEthernetType(34525L),
1335 new MatchIpProtocol(58 as short),
1336 new MatchIcmpv6(134 as short, 0 as short),
1337 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1340 tableId = 211 as short
1342 new FlowEntity(123bi) => [
1343 cookie = 110100480bi
1344 flowId = "Egress_ICMPv6_123_987_133_Permit_"
1346 instructionInfoList = #[
1347 new InstructionApplyActions(#[
1348 new ActionNxResubmit(17 as short)
1352 new MatchEthernetType(34525L),
1353 new MatchIpProtocol(58 as short),
1354 new MatchIcmpv6(133 as short, 0 as short),
1355 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1358 tableId = 211 as short
1360 new FlowEntity(123bi) => [
1361 cookie = 110100480bi
1362 flowId = "Egress_ICMPv6_123_987_135_Permit_"
1364 instructionInfoList = #[
1365 new InstructionApplyActions(#[
1366 new ActionNxResubmit(17 as short)
1370 new MatchEthernetType(34525L),
1371 new MatchIpProtocol(58 as short),
1372 new MatchIcmpv6(135 as short, 0 as short),
1373 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1376 tableId = 211 as short
1378 new FlowEntity(123bi) => [
1379 cookie = 110100480bi
1380 flowId = "Egress_ICMPv6_123_987_136_Permit_"
1382 instructionInfoList = #[
1383 new InstructionApplyActions(#[
1384 new ActionNxResubmit(17 as short)
1388 new MatchEthernetType(34525L),
1389 new MatchIpProtocol(58 as short),
1390 new MatchIcmpv6(136 as short, 0 as short),
1391 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1394 tableId = 211 as short