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 static def fixedFlowsPort1() {
26 #[ fixedIngressFlowsPort1, fixedEgressFlowsPort1 ]
29 static 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 as short
143 static 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 as short
285 new FlowEntity(123bi) => [
287 flowId = "Egress_ARP_123_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 = 40 as short
306 static 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 as short
419 static def fixedEgrssFlowsPort2 () {
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),
434 new MatchUdpSourcePort(68),
435 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
438 tableId = 40 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),
453 new MatchUdpSourcePort(546),
454 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
457 tableId = 40 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),
469 new MatchUdpSourcePort(67),
470 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
473 tableId = 40 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),
485 new MatchUdpSourcePort(547),
486 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
489 tableId = 40 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 = 40 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 = 40 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 = 40 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 = 40 as short
560 new FlowEntity(123bi) => [
562 flowId = "Egress_ARP_123_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 = 40 as short
581 static 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 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 = 251 as short
694 static 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 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 = 40 as short
835 new FlowEntity(123bi) => [
837 flowId = "Egress_ARP_123_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 = 40 as short
855 static def expectedFlows(String mac) {
856 // Code auto. generated by https://github.com/vorburger/xtendbeans
858 new FlowEntity(123bi) => [
860 flowId = "Ingress_DHCP_Server_v4123_987__Permit_"
862 instructionInfoList = #[
863 new InstructionApplyActions(#[
864 new ActionNxResubmit(220 as short)
868 new MatchEthernetType(2048L),
869 new MatchIpProtocol(17 as short),
870 new MatchUdpDestinationPort(68),
871 new MatchUdpSourcePort(67),
872 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
875 tableId = 251 as short
877 new FlowEntity(123bi) => [
879 flowId = "Ingress_DHCP_Server_v6_123_987___Permit_"
881 instructionInfoList = #[
882 new InstructionApplyActions(#[
883 new ActionNxResubmit(220 as short)
887 new MatchEthernetType(34525L),
888 new MatchIpProtocol(17 as short),
889 new MatchUdpDestinationPort(546),
890 new MatchUdpSourcePort(547),
891 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
894 tableId = 251 as short
896 new FlowEntity(123bi) => [
898 flowId = "Ingress_ICMPv6_123_987_130_Permit_"
900 instructionInfoList = #[
901 new InstructionApplyActions(#[
902 new ActionNxResubmit(220 as short)
906 new MatchEthernetType(34525L),
907 new MatchIpProtocol(58 as short),
908 new MatchIcmpv6(130 as short, 0 as short),
909 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
912 tableId = 251 as short
914 new FlowEntity(123bi) => [
916 flowId = "Ingress_ICMPv6_123_987_135_Permit_"
918 instructionInfoList = #[
919 new InstructionApplyActions(#[
920 new ActionNxResubmit(220 as short)
924 new MatchEthernetType(34525L),
925 new MatchIpProtocol(58 as short),
926 new MatchIcmpv6(135 as short, 0 as short),
927 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
930 tableId = 251 as short
932 new FlowEntity(123bi) => [
934 flowId = "Ingress_ICMPv6_123_987_136_Permit_"
936 instructionInfoList = #[
937 new InstructionApplyActions(#[
938 new ActionNxResubmit(220 as short)
942 new MatchEthernetType(34525L),
943 new MatchIpProtocol(58 as short),
944 new MatchIcmpv6(136 as short, 0 as short),
945 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
948 tableId = 251 as short
950 new FlowEntity(123bi) => [
952 flowId = "Ingress_ARP_123_987"
954 instructionInfoList = #[
955 new InstructionApplyActions(#[
956 new ActionNxResubmit(220 as short)
960 new MatchEthernetType(2054L),
961 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
964 tableId = 251 as short
966 new FlowEntity(123bi) => [
968 flowId = "Egress_DHCP_Client_v4123_987__Permit_"
970 instructionInfoList = #[
971 new InstructionApplyActions(#[
972 new ActionNxResubmit(17 as short)
976 new MatchEthernetType(2048L),
977 new MatchIpProtocol(17 as short),
978 new MatchUdpDestinationPort(67),
979 new MatchUdpSourcePort(68),
980 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
983 tableId = 40 as short
985 new FlowEntity(123bi) => [
987 flowId = "Egress_DHCP_Client_v6_123_987__Permit_"
989 instructionInfoList = #[
990 new InstructionApplyActions(#[
991 new ActionNxResubmit(17 as short)
995 new MatchEthernetType(34525L),
996 new MatchIpProtocol(17 as short),
997 new MatchUdpDestinationPort(547),
998 new MatchUdpSourcePort(546),
999 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1002 tableId = 40 as short
1004 new FlowEntity(123bi) => [
1005 cookie = 110100480bi
1006 flowId = "Egress_DHCP_Server_v4123_987__Drop_"
1008 instructionInfoList = #[
1011 new MatchEthernetType(2048L),
1012 new MatchIpProtocol(17 as short),
1013 new MatchUdpDestinationPort(68),
1014 new MatchUdpSourcePort(67),
1015 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1018 tableId = 40 as short
1020 new FlowEntity(123bi) => [
1021 cookie = 110100480bi
1022 flowId = "Egress_DHCP_Server_v6_123_987__Drop_"
1024 instructionInfoList = #[
1027 new MatchEthernetType(34525L),
1028 new MatchIpProtocol(17 as short),
1029 new MatchUdpDestinationPort(546),
1030 new MatchUdpSourcePort(547),
1031 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1034 tableId = 40 as short
1036 new FlowEntity(123bi) => [
1037 cookie = 110100480bi
1038 flowId = "Egress_ICMPv6_123_987_134_Drop_"
1040 instructionInfoList = #[
1043 new MatchEthernetType(34525L),
1044 new MatchIpProtocol(58 as short),
1045 new MatchIcmpv6(134 as short, 0 as short),
1046 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1049 tableId = 40 as short
1051 new FlowEntity(123bi) => [
1052 cookie = 110100480bi
1053 flowId = "Egress_ICMPv6_123_987_133_Permit_"
1055 instructionInfoList = #[
1056 new InstructionApplyActions(#[
1057 new ActionNxResubmit(17 as short)
1061 new MatchEthernetType(34525L),
1062 new MatchIpProtocol(58 as short),
1063 new MatchIcmpv6(133 as short, 0 as short),
1064 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1067 tableId = 40 as short
1069 new FlowEntity(123bi) => [
1070 cookie = 110100480bi
1071 flowId = "Egress_ICMPv6_123_987_135_Permit_"
1073 instructionInfoList = #[
1074 new InstructionApplyActions(#[
1075 new ActionNxResubmit(17 as short)
1079 new MatchEthernetType(34525L),
1080 new MatchIpProtocol(58 as short),
1081 new MatchIcmpv6(135 as short, 0 as short),
1082 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1085 tableId = 40 as short
1087 new FlowEntity(123bi) => [
1088 cookie = 110100480bi
1089 flowId = "Egress_ICMPv6_123_987_136_Permit_"
1091 instructionInfoList = #[
1092 new InstructionApplyActions(#[
1093 new ActionNxResubmit(17 as short)
1097 new MatchEthernetType(34525L),
1098 new MatchIpProtocol(58 as short),
1099 new MatchIcmpv6(136 as short, 0 as short),
1100 new MatchMetadata(1085217976614912bi, MetaDataUtil.METADATA_MASK_LPORT_TAG)
1103 tableId = 40 as short