Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2017-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | package org.onosproject.pipelines.fabric; |
| 18 | |
| 19 | import org.onosproject.net.pi.model.PiActionId; |
| 20 | import org.onosproject.net.pi.model.PiActionParamId; |
| 21 | import org.onosproject.net.pi.model.PiActionProfileId; |
| 22 | import org.onosproject.net.pi.model.PiControlMetadataId; |
| 23 | import org.onosproject.net.pi.model.PiCounterId; |
| 24 | import org.onosproject.net.pi.model.PiMatchFieldId; |
| 25 | import org.onosproject.net.pi.model.PiTableId; |
| 26 | /** |
| 27 | * Constants for fabric pipeline. |
| 28 | */ |
| 29 | public final class FabricConstants { |
| 30 | |
| 31 | // hide default constructor |
| 32 | private FabricConstants() { |
| 33 | } |
| 34 | |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 35 | // Header field IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 36 | public static final PiMatchFieldId FABRIC_METADATA_L4_SRC_PORT = |
| 37 | PiMatchFieldId.of("fabric_metadata.l4_src_port"); |
| 38 | public static final PiMatchFieldId HDR_IPV4_SRC_ADDR = |
| 39 | PiMatchFieldId.of("hdr.ipv4.src_addr"); |
| 40 | public static final PiMatchFieldId HDR_VLAN_TAG_VLAN_ID = |
| 41 | PiMatchFieldId.of("hdr.vlan_tag.vlan_id"); |
| 42 | public static final PiMatchFieldId HDR_MPLS_LABEL = |
| 43 | PiMatchFieldId.of("hdr.mpls.label"); |
| 44 | public static final PiMatchFieldId HDR_IPV6_DST_ADDR = |
| 45 | PiMatchFieldId.of("hdr.ipv6.dst_addr"); |
| 46 | public static final PiMatchFieldId HDR_ETHERNET_SRC_ADDR = |
| 47 | PiMatchFieldId.of("hdr.ethernet.src_addr"); |
| 48 | public static final PiMatchFieldId HDR_ICMP_ICMP_TYPE = |
| 49 | PiMatchFieldId.of("hdr.icmp.icmp_type"); |
| 50 | public static final PiMatchFieldId STANDARD_METADATA_EGRESS_PORT = |
| 51 | PiMatchFieldId.of("standard_metadata.egress_port"); |
| 52 | public static final PiMatchFieldId FABRIC_METADATA_NEXT_ID = |
| 53 | PiMatchFieldId.of("fabric_metadata.next_id"); |
| 54 | public static final PiMatchFieldId FABRIC_METADATA_L4_DST_PORT = |
| 55 | PiMatchFieldId.of("fabric_metadata.l4_dst_port"); |
| 56 | public static final PiMatchFieldId STANDARD_METADATA_INGRESS_PORT = |
| 57 | PiMatchFieldId.of("standard_metadata.ingress_port"); |
| 58 | public static final PiMatchFieldId FABRIC_METADATA_ORIGINAL_ETHER_TYPE = |
| 59 | PiMatchFieldId.of("fabric_metadata.original_ether_type"); |
| 60 | public static final PiMatchFieldId HDR_IPV4_DST_ADDR = |
| 61 | PiMatchFieldId.of("hdr.ipv4.dst_addr"); |
| 62 | public static final PiMatchFieldId HDR_VLAN_TAG_IS_VALID = |
| 63 | PiMatchFieldId.of("hdr.vlan_tag.is_valid"); |
| 64 | public static final PiMatchFieldId FABRIC_METADATA_IP_PROTO = |
| 65 | PiMatchFieldId.of("fabric_metadata.ip_proto"); |
| 66 | public static final PiMatchFieldId HDR_ETHERNET_DST_ADDR = |
| 67 | PiMatchFieldId.of("hdr.ethernet.dst_addr"); |
| 68 | public static final PiMatchFieldId HDR_ICMP_ICMP_CODE = |
| 69 | PiMatchFieldId.of("hdr.icmp.icmp_code"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 70 | // Table IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 71 | public static final PiTableId FABRIC_INGRESS_FORWARDING_ACL = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 72 | PiTableId.of("FabricIngress.forwarding.acl"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 73 | public static final PiTableId FABRIC_INGRESS_NEXT_HASHED = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 74 | PiTableId.of("FabricIngress.next.hashed"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 75 | public static final PiTableId FABRIC_EGRESS_EGRESS_NEXT_EGRESS_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 76 | PiTableId.of("FabricEgress.egress_next.egress_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 77 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MPLS = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 78 | PiTableId.of("FabricIngress.forwarding.mpls"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 79 | public static final PiTableId FABRIC_INGRESS_NEXT_MULTICAST = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 80 | PiTableId.of("FabricIngress.next.multicast"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 81 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MULTICAST_V4 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 82 | PiTableId.of("FabricIngress.forwarding.multicast_v4"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 83 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MULTICAST_V6 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 84 | PiTableId.of("FabricIngress.forwarding.multicast_v6"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 85 | public static final PiTableId FABRIC_INGRESS_FORWARDING_UNICAST_V4 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 86 | PiTableId.of("FabricIngress.forwarding.unicast_v4"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 87 | public static final PiTableId FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 88 | PiTableId.of("FabricIngress.filtering.fwd_classifier"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 89 | public static final PiTableId FABRIC_INGRESS_FORWARDING_BRIDGING = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 90 | PiTableId.of("FabricIngress.forwarding.bridging"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 91 | public static final PiTableId FABRIC_INGRESS_NEXT_SIMPLE = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 92 | PiTableId.of("FabricIngress.next.simple"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 93 | public static final PiTableId FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 94 | PiTableId.of("FabricIngress.filtering.ingress_port_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 95 | public static final PiTableId FABRIC_INGRESS_FORWARDING_UNICAST_V6 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 96 | PiTableId.of("FabricIngress.forwarding.unicast_v6"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 97 | public static final PiTableId FABRIC_INGRESS_NEXT_VLAN_META = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 98 | PiTableId.of("FabricIngress.next.vlan_meta"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 99 | // Indirect Counter IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 100 | public static final PiCounterId FABRIC_INGRESS_PORT_COUNTERS_CONTROL_EGRESS_PORT_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 101 | PiCounterId.of("FabricIngress.port_counters_control.egress_port_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 102 | public static final PiCounterId FABRIC_INGRESS_PORT_COUNTERS_CONTROL_INGRESS_PORT_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 103 | PiCounterId.of("FabricIngress.port_counters_control.ingress_port_counter"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 104 | // Direct Counter IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 105 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_ACL_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 106 | PiCounterId.of("FabricIngress.forwarding.acl_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 107 | public static final PiCounterId FABRIC_INGRESS_NEXT_MULTICAST_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 108 | PiCounterId.of("FabricIngress.next.multicast_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 109 | public static final PiCounterId FABRIC_INGRESS_NEXT_VLAN_META_COUNTER = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 110 | PiCounterId.of("FabricIngress.next.vlan_meta_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 111 | public static final PiCounterId FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 112 | PiCounterId.of("FabricIngress.filtering.fwd_classifier_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 113 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_BRIDGING_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 114 | PiCounterId.of("FabricIngress.forwarding.bridging_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 115 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MULTICAST_V6_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 116 | PiCounterId.of("FabricIngress.forwarding.multicast_v6_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 117 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MULTICAST_V4_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 118 | PiCounterId.of("FabricIngress.forwarding.multicast_v4_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 119 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_UNICAST_V6_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 120 | PiCounterId.of("FabricIngress.forwarding.unicast_v6_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 121 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_UNICAST_V4_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 122 | PiCounterId.of("FabricIngress.forwarding.unicast_v4_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 123 | public static final PiCounterId FABRIC_INGRESS_NEXT_SIMPLE_COUNTER = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 124 | PiCounterId.of("FabricIngress.next.simple_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 125 | public static final PiCounterId FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 126 | PiCounterId.of("FabricIngress.filtering.ingress_port_vlan_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 127 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MPLS_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 128 | PiCounterId.of("FabricIngress.forwarding.mpls_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 129 | public static final PiCounterId FABRIC_INGRESS_NEXT_HASHED_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 130 | PiCounterId.of("FabricIngress.next.hashed_counter"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 131 | // Action IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 132 | public static final PiActionId FABRIC_INGRESS_FILTERING_DROP = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 133 | PiActionId.of("FabricIngress.filtering.drop"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 134 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 135 | PiActionId.of("FabricIngress.next.set_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 136 | public static final PiActionId FABRIC_INGRESS_FORWARDING_POP_MPLS_AND_NEXT = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 137 | PiActionId.of("FabricIngress.forwarding.pop_mpls_and_next"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 138 | public static final PiActionId FABRIC_EGRESS_EGRESS_NEXT_POP_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 139 | PiActionId.of("FabricEgress.egress_next.pop_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 140 | public static final PiActionId FABRIC_INGRESS_FILTERING_SET_FORWARDING_TYPE = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 141 | PiActionId.of("FabricIngress.filtering.set_forwarding_type"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 142 | public static final PiActionId NOP = PiActionId.of("nop"); |
| 143 | public static final PiActionId FABRIC_INGRESS_FILTERING_SET_VLAN = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 144 | PiActionId.of("FabricIngress.filtering.set_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 145 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V6 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 146 | PiActionId.of("FabricIngress.next.mpls_routing_v6"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 147 | public static final PiActionId FABRIC_EGRESS_PKT_IO_EGRESS_POP_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 148 | PiActionId.of("FabricEgress.pkt_io_egress.pop_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 149 | public static final PiActionId FABRIC_INGRESS_NEXT_L3_ROUTING_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 150 | PiActionId.of("FabricIngress.next.l3_routing_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 151 | public static final PiActionId NO_ACTION = PiActionId.of("NoAction"); |
| 152 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_MCAST_GROUP = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 153 | PiActionId.of("FabricIngress.next.set_mcast_group"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 154 | public static final PiActionId FABRIC_INGRESS_FORWARDING_DUPLICATE_TO_CONTROLLER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 155 | PiActionId.of("FabricIngress.forwarding.duplicate_to_controller"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 156 | public static final PiActionId FABRIC_INGRESS_NEXT_L3_ROUTING = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 157 | PiActionId.of("FabricIngress.next.l3_routing"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 158 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V4 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 159 | PiActionId.of("FabricIngress.next.mpls_routing_v4"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 160 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_VLAN_OUTPUT = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 161 | PiActionId.of("FabricIngress.next.set_vlan_output"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 162 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 163 | PiActionId.of("FabricIngress.forwarding.set_next_id"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 164 | public static final PiActionId FABRIC_INGRESS_FILTERING_PUSH_INTERNAL_VLAN = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 165 | PiActionId.of("FabricIngress.filtering.push_internal_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 166 | public static final PiActionId FABRIC_INGRESS_FORWARDING_DROP = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 167 | PiActionId.of("FabricIngress.forwarding.drop"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 168 | public static final PiActionId FABRIC_INGRESS_NEXT_OUTPUT = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 169 | PiActionId.of("FabricIngress.next.output"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 170 | // Action Param IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 171 | public static final PiActionParamId DMAC = PiActionParamId.of("dmac"); |
| 172 | public static final PiActionParamId PORT_NUM = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 173 | PiActionParamId.of("port_num"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 174 | public static final PiActionParamId LABEL = PiActionParamId.of("label"); |
| 175 | public static final PiActionParamId SMAC = PiActionParamId.of("smac"); |
| 176 | public static final PiActionParamId GID = PiActionParamId.of("gid"); |
| 177 | public static final PiActionParamId NEW_VLAN_ID = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 178 | PiActionParamId.of("new_vlan_id"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 179 | public static final PiActionParamId FWD_TYPE = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 180 | PiActionParamId.of("fwd_type"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 181 | public static final PiActionParamId NEXT_ID = PiActionParamId.of("next_id"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 182 | // Action Profile IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 183 | public static final PiActionProfileId FABRIC_INGRESS_NEXT_ECMP_SELECTOR = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 184 | PiActionProfileId.of("FabricIngress.next.ecmp_selector"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 185 | // Packet Metadata IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 186 | public static final PiControlMetadataId INGRESS_PORT = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 187 | PiControlMetadataId.of("ingress_port"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 188 | public static final PiControlMetadataId EGRESS_PORT = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 189 | PiControlMetadataId.of("egress_port"); |
Yi Tseng | fa4a1c7 | 2017-11-03 10:22:38 -0700 | [diff] [blame] | 190 | public static final int PORT_BITWIDTH = 9; |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame^] | 191 | } |