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 |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 36 | public static final PiMatchFieldId STANDARD_METADATA_EGRESS_PORT = |
| 37 | PiMatchFieldId.of("standard_metadata.egress_port"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 38 | public static final PiMatchFieldId FABRIC_METADATA_L4_SRC_PORT = |
| 39 | PiMatchFieldId.of("fabric_metadata.l4_src_port"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 40 | public static final PiMatchFieldId SPGW_META_S1U_SGW_ADDR = |
| 41 | PiMatchFieldId.of("spgw_meta.s1u_sgw_addr"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 42 | public static final PiMatchFieldId HDR_IPV4_SRC_ADDR = |
| 43 | PiMatchFieldId.of("hdr.ipv4.src_addr"); |
| 44 | public static final PiMatchFieldId HDR_VLAN_TAG_VLAN_ID = |
| 45 | PiMatchFieldId.of("hdr.vlan_tag.vlan_id"); |
| 46 | public static final PiMatchFieldId HDR_MPLS_LABEL = |
| 47 | PiMatchFieldId.of("hdr.mpls.label"); |
| 48 | public static final PiMatchFieldId HDR_IPV6_DST_ADDR = |
| 49 | PiMatchFieldId.of("hdr.ipv6.dst_addr"); |
| 50 | public static final PiMatchFieldId HDR_ETHERNET_SRC_ADDR = |
| 51 | PiMatchFieldId.of("hdr.ethernet.src_addr"); |
| 52 | public static final PiMatchFieldId HDR_ICMP_ICMP_TYPE = |
| 53 | PiMatchFieldId.of("hdr.icmp.icmp_type"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 54 | public static final PiMatchFieldId FABRIC_METADATA_NEXT_ID = |
| 55 | PiMatchFieldId.of("fabric_metadata.next_id"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 56 | public static final PiMatchFieldId HDR_IPV4_DST_ADDR = |
| 57 | PiMatchFieldId.of("hdr.ipv4.dst_addr"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 58 | public static final PiMatchFieldId FABRIC_METADATA_L4_DST_PORT = |
| 59 | PiMatchFieldId.of("fabric_metadata.l4_dst_port"); |
| 60 | public static final PiMatchFieldId STANDARD_METADATA_INGRESS_PORT = |
| 61 | PiMatchFieldId.of("standard_metadata.ingress_port"); |
| 62 | public static final PiMatchFieldId FABRIC_METADATA_ORIGINAL_ETHER_TYPE = |
| 63 | PiMatchFieldId.of("fabric_metadata.original_ether_type"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 64 | public static final PiMatchFieldId IPV4_DST_ADDR = |
| 65 | PiMatchFieldId.of("ipv4.dst_addr"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 66 | public static final PiMatchFieldId HDR_VLAN_TAG_IS_VALID = |
| 67 | PiMatchFieldId.of("hdr.vlan_tag.is_valid"); |
| 68 | public static final PiMatchFieldId FABRIC_METADATA_IP_PROTO = |
| 69 | PiMatchFieldId.of("fabric_metadata.ip_proto"); |
| 70 | public static final PiMatchFieldId HDR_ETHERNET_DST_ADDR = |
| 71 | PiMatchFieldId.of("hdr.ethernet.dst_addr"); |
| 72 | public static final PiMatchFieldId HDR_ICMP_ICMP_CODE = |
| 73 | PiMatchFieldId.of("hdr.icmp.icmp_code"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 74 | // Table IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 75 | public static final PiTableId FABRIC_INGRESS_FORWARDING_ACL = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 76 | PiTableId.of("FabricIngress.forwarding.acl"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 77 | public static final PiTableId FABRIC_INGRESS_NEXT_HASHED = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 78 | PiTableId.of("FabricIngress.next.hashed"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 79 | public static final PiTableId FABRIC_EGRESS_EGRESS_NEXT_EGRESS_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 80 | PiTableId.of("FabricEgress.egress_next.egress_vlan"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 81 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MPLS = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 82 | PiTableId.of("FabricIngress.forwarding.mpls"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 83 | public static final PiTableId FABRIC_INGRESS_NEXT_MULTICAST = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 84 | PiTableId.of("FabricIngress.next.multicast"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 85 | public static final PiTableId FABRIC_INGRESS_SPGW_INGRESS_UE_CDR_TABLE = |
| 86 | PiTableId.of("FabricIngress.spgw_ingress.ue_cdr_table"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 87 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MULTICAST_V6 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 88 | PiTableId.of("FabricIngress.forwarding.multicast_v6"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 89 | public static final PiTableId FABRIC_INGRESS_FORWARDING_UNICAST_V4 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 90 | PiTableId.of("FabricIngress.forwarding.unicast_v4"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 91 | public static final PiTableId FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 92 | PiTableId.of("FabricIngress.filtering.fwd_classifier"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 93 | public static final PiTableId FABRIC_INGRESS_NEXT_SIMPLE = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 94 | PiTableId.of("FabricIngress.next.simple"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 95 | public static final PiTableId FABRIC_INGRESS_SPGW_INGRESS_UE_FILTER_TABLE = |
| 96 | PiTableId.of("FabricIngress.spgw_ingress.ue_filter_table"); |
| 97 | public static final PiTableId FABRIC_INGRESS_FORWARDING_BRIDGING = |
| 98 | PiTableId.of("FabricIngress.forwarding.bridging"); |
| 99 | public static final PiTableId FABRIC_INGRESS_SPGW_INGRESS_S1U_FILTER_TABLE = |
| 100 | PiTableId.of("FabricIngress.spgw_ingress.s1u_filter_table"); |
| 101 | public static final PiTableId FABRIC_INGRESS_FORWARDING_MULTICAST_V4 = |
| 102 | PiTableId.of("FabricIngress.forwarding.multicast_v4"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 103 | public static final PiTableId FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 104 | PiTableId.of("FabricIngress.filtering.ingress_port_vlan"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 105 | public static final PiTableId FABRIC_INGRESS_SPGW_INGRESS_DL_SESS_LOOKUP = |
| 106 | PiTableId.of("FabricIngress.spgw_ingress.dl_sess_lookup"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 107 | public static final PiTableId FABRIC_INGRESS_FORWARDING_UNICAST_V6 = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 108 | PiTableId.of("FabricIngress.forwarding.unicast_v6"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 109 | public static final PiTableId FABRIC_INGRESS_NEXT_VLAN_META = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 110 | PiTableId.of("FabricIngress.next.vlan_meta"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 111 | // Indirect Counter IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 112 | public static final PiCounterId FABRIC_INGRESS_PORT_COUNTERS_CONTROL_EGRESS_PORT_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 113 | PiCounterId.of("FabricIngress.port_counters_control.egress_port_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 114 | public static final PiCounterId FABRIC_INGRESS_PORT_COUNTERS_CONTROL_INGRESS_PORT_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 115 | PiCounterId.of("FabricIngress.port_counters_control.ingress_port_counter"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 116 | // Direct Counter IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 117 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_ACL_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 118 | PiCounterId.of("FabricIngress.forwarding.acl_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 119 | public static final PiCounterId FABRIC_INGRESS_NEXT_MULTICAST_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 120 | PiCounterId.of("FabricIngress.next.multicast_counter"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 121 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_UNICAST_V6_COUNTER = |
| 122 | PiCounterId.of("FabricIngress.forwarding.unicast_v6_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 123 | public static final PiCounterId FABRIC_INGRESS_FILTERING_FWD_CLASSIFIER_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 124 | PiCounterId.of("FabricIngress.filtering.fwd_classifier_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 125 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_BRIDGING_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 126 | PiCounterId.of("FabricIngress.forwarding.bridging_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 127 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MULTICAST_V6_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 128 | PiCounterId.of("FabricIngress.forwarding.multicast_v6_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 129 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MULTICAST_V4_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 130 | PiCounterId.of("FabricIngress.forwarding.multicast_v4_counter"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 131 | public static final PiCounterId FABRIC_INGRESS_SPGW_INGRESS_UE_COUNTER = |
| 132 | PiCounterId.of("FabricIngress.spgw_ingress.ue_counter"); |
| 133 | public static final PiCounterId FABRIC_INGRESS_NEXT_VLAN_META_COUNTER = |
| 134 | PiCounterId.of("FabricIngress.next.vlan_meta_counter"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 135 | public static final PiCounterId FABRIC_EGRESS_EGRESS_NEXT_EGRESS_VLAN_COUNTER = |
| 136 | PiCounterId.of("FabricEgress.egress_next.egress_vlan_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 137 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_UNICAST_V4_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 138 | PiCounterId.of("FabricIngress.forwarding.unicast_v4_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 139 | public static final PiCounterId FABRIC_INGRESS_NEXT_SIMPLE_COUNTER = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 140 | PiCounterId.of("FabricIngress.next.simple_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 141 | public static final PiCounterId FABRIC_INGRESS_FILTERING_INGRESS_PORT_VLAN_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 142 | PiCounterId.of("FabricIngress.filtering.ingress_port_vlan_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 143 | public static final PiCounterId FABRIC_INGRESS_FORWARDING_MPLS_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 144 | PiCounterId.of("FabricIngress.forwarding.mpls_counter"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 145 | public static final PiCounterId FABRIC_INGRESS_NEXT_HASHED_COUNTER = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 146 | PiCounterId.of("FabricIngress.next.hashed_counter"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 147 | // Action IDs |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 148 | public static final PiActionId FABRIC_INGRESS_SPGW_INGRESS_UPDATE_UE_CDR = |
| 149 | PiActionId.of("FabricIngress.spgw_ingress.update_ue_cdr"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 150 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V6_SIMPLE = |
| 151 | PiActionId.of("FabricIngress.next.mpls_routing_v6_simple"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 152 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V6_HASHED = |
| 153 | PiActionId.of("FabricIngress.next.mpls_routing_v6_hashed"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 154 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_BRIDGING = |
| 155 | PiActionId.of("FabricIngress.forwarding.set_next_id_bridging"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 156 | public static final PiActionId FABRIC_INGRESS_FORWARDING_PUNT_TO_CPU = |
| 157 | PiActionId.of("FabricIngress.forwarding.punt_to_cpu"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 158 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 159 | PiActionId.of("FabricIngress.next.set_vlan"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 160 | public static final PiActionId FABRIC_EGRESS_SPGW_EGRESS_GTPU_ENCAP = |
| 161 | PiActionId.of("FabricEgress.spgw_egress.gtpu_encap"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 162 | public static final PiActionId FABRIC_EGRESS_PKT_IO_EGRESS_POP_VLAN = |
Yi Tseng | 20f9e7b | 2018-05-24 23:27:39 +0800 | [diff] [blame] | 163 | PiActionId.of("FabricEgress.pkt_io_egress.pop_vlan"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 164 | public static final PiActionId FABRIC_INGRESS_FILTERING_SET_VLAN = |
| 165 | PiActionId.of("FabricIngress.filtering.set_vlan"); |
| 166 | public static final PiActionId FABRIC_INGRESS_NEXT_L3_ROUTING_SIMPLE = |
| 167 | PiActionId.of("FabricIngress.next.l3_routing_simple"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 168 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_MCAST_GROUP = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 169 | PiActionId.of("FabricIngress.next.set_mcast_group"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 170 | public static final PiActionId FABRIC_INGRESS_SPGW_INGRESS_SET_DL_SESS_INFO = |
| 171 | PiActionId.of("FabricIngress.spgw_ingress.set_dl_sess_info"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 172 | public static final PiActionId FABRIC_INGRESS_FILTERING_PUSH_INTERNAL_VLAN = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 173 | PiActionId.of("FabricIngress.filtering.push_internal_vlan"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 174 | public static final PiActionId FABRIC_INGRESS_FORWARDING_CLONE_TO_CPU = |
| 175 | PiActionId.of("FabricIngress.forwarding.clone_to_cpu"); |
| 176 | public static final PiActionId FABRIC_INGRESS_SPGW_INGRESS_GTPU_DECAP = |
| 177 | PiActionId.of("FabricIngress.spgw_ingress.gtpu_decap"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 178 | public static final PiActionId FABRIC_INGRESS_FORWARDING_POP_MPLS_AND_NEXT = |
| 179 | PiActionId.of("FabricIngress.forwarding.pop_mpls_and_next"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 180 | public static final PiActionId DROP_NOW = PiActionId.of("drop_now"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 181 | public static final PiActionId FABRIC_INGRESS_NEXT_L3_ROUTING_HASHED = |
| 182 | PiActionId.of("FabricIngress.next.l3_routing_hashed"); |
| 183 | public static final PiActionId FABRIC_EGRESS_EGRESS_NEXT_POP_VLAN = |
| 184 | PiActionId.of("FabricEgress.egress_next.pop_vlan"); |
| 185 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V4_HASHED = |
| 186 | PiActionId.of("FabricIngress.next.mpls_routing_v4_hashed"); |
| 187 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_UNICAST_V6 = |
| 188 | PiActionId.of("FabricIngress.forwarding.set_next_id_unicast_v6"); |
| 189 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_UNICAST_V4 = |
| 190 | PiActionId.of("FabricIngress.forwarding.set_next_id_unicast_v4"); |
| 191 | public static final PiActionId NOP = PiActionId.of("nop"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 192 | public static final PiActionId FABRIC_INGRESS_FORWARDING_DROP = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 193 | PiActionId.of("FabricIngress.forwarding.drop"); |
Yi Tseng | 47eac89 | 2018-07-11 02:17:04 +0800 | [diff] [blame] | 194 | public static final PiActionId FABRIC_INGRESS_NEXT_OUTPUT_SIMPLE = |
| 195 | PiActionId.of("FabricIngress.next.output_simple"); |
| 196 | public static final PiActionId FABRIC_INGRESS_FILTERING_DROP = |
| 197 | PiActionId.of("FabricIngress.filtering.drop"); |
| 198 | public static final PiActionId FABRIC_INGRESS_FILTERING_SET_FORWARDING_TYPE = |
| 199 | PiActionId.of("FabricIngress.filtering.set_forwarding_type"); |
| 200 | public static final PiActionId FABRIC_INGRESS_NEXT_SET_VLAN_OUTPUT = |
| 201 | PiActionId.of("FabricIngress.next.set_vlan_output"); |
| 202 | public static final PiActionId NO_ACTION = PiActionId.of("NoAction"); |
| 203 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_MULTICAST_V6 = |
| 204 | PiActionId.of("FabricIngress.forwarding.set_next_id_multicast_v6"); |
| 205 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_MULTICAST_V4 = |
| 206 | PiActionId.of("FabricIngress.forwarding.set_next_id_multicast_v4"); |
| 207 | public static final PiActionId FABRIC_INGRESS_NEXT_MPLS_ROUTING_V4_SIMPLE = |
| 208 | PiActionId.of("FabricIngress.next.mpls_routing_v4_simple"); |
| 209 | public static final PiActionId FABRIC_INGRESS_NEXT_L3_ROUTING_VLAN = |
| 210 | PiActionId.of("FabricIngress.next.l3_routing_vlan"); |
| 211 | public static final PiActionId FABRIC_INGRESS_FORWARDING_SET_NEXT_ID_ACL = |
| 212 | PiActionId.of("FabricIngress.forwarding.set_next_id_acl"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 213 | // Action Param IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 214 | public static final PiActionParamId DMAC = PiActionParamId.of("dmac"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 215 | public static final PiActionParamId TEID = PiActionParamId.of("teid"); |
| 216 | public static final PiActionParamId S1U_ENB_ADDR = |
| 217 | PiActionParamId.of("s1u_enb_addr"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 218 | public static final PiActionParamId PORT_NUM = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 219 | PiActionParamId.of("port_num"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 220 | public static final PiActionParamId S1U_SGW_ADDR = |
| 221 | PiActionParamId.of("s1u_sgw_addr"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 222 | public static final PiActionParamId LABEL = PiActionParamId.of("label"); |
| 223 | public static final PiActionParamId SMAC = PiActionParamId.of("smac"); |
| 224 | public static final PiActionParamId GID = PiActionParamId.of("gid"); |
| 225 | public static final PiActionParamId NEW_VLAN_ID = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 226 | PiActionParamId.of("new_vlan_id"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 227 | public static final PiActionParamId FWD_TYPE = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 228 | PiActionParamId.of("fwd_type"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 229 | public static final PiActionParamId NEXT_ID = PiActionParamId.of("next_id"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 230 | // Action Profile IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 231 | public static final PiActionProfileId FABRIC_INGRESS_NEXT_ECMP_SELECTOR = |
Yi Tseng | 27b9bc0 | 2018-04-12 14:52:40 +0800 | [diff] [blame] | 232 | PiActionProfileId.of("FabricIngress.next.ecmp_selector"); |
Yi Tseng | be34205 | 2017-11-03 10:21:23 -0700 | [diff] [blame] | 233 | // Packet Metadata IDs |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 234 | public static final PiControlMetadataId INGRESS_PORT = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 235 | PiControlMetadataId.of("ingress_port"); |
Yi Tseng | 43ee7e8 | 2018-04-12 16:37:34 +0800 | [diff] [blame] | 236 | public static final PiControlMetadataId EGRESS_PORT = |
Yi Tseng | c6844f5 | 2017-12-19 11:58:25 -0800 | [diff] [blame] | 237 | PiControlMetadataId.of("egress_port"); |
Carmelo Cascone | 1e8843f | 2018-07-19 19:01:12 +0200 | [diff] [blame^] | 238 | } |