blob: 2dc7235e3020b1e557621b6dde466d61c4751995 [file] [log] [blame]
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -08001/*
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
17package org.onosproject.net.pi.runtime;
18
19import com.google.common.annotations.Beta;
20
21/**
22 * Type of runtime entity of a protocol-independent pipeline.
23 */
24@Beta
25public enum PiEntityType {
26 /**
27 * Table entry.
28 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080029 TABLE_ENTRY("table entry"),
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080030
31 /**
32 * Action profile group.
33 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080034 ACTION_PROFILE_GROUP("action profile group"),
Carmelo Cascone5bc7e102018-02-18 18:27:55 -080035
36 /**
Carmelo Casconecb4327a2018-09-11 15:17:23 -070037 * Action profile member.
Carmelo Cascone5bc7e102018-02-18 18:27:55 -080038 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080039 ACTION_PROFILE_MEMBER("action profile member"),
Frank Wangd7e3b4b2017-09-24 13:37:54 +090040
41 /**
Carmelo Cascone4c289b72019-01-22 15:30:45 -080042 * Meter cell config.
Frank Wangd7e3b4b2017-09-24 13:37:54 +090043 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080044 METER_CELL_CONFIG("meter cell config"),
FrankWang2674e452018-05-24 17:13:35 +080045
46 /**
Carmelo Cascone4c289b72019-01-22 15:30:45 -080047 * Register cell.
FrankWang2674e452018-05-24 17:13:35 +080048 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080049 REGISTER_CELL("register cell"),
50
51 /**
52 * Counter cell.
53 */
54 COUNTER_CELL("counter cell"),
Carmelo Cascone58136812018-07-19 03:40:16 +020055
56 /**
Carmelo Cascone9db4d5c2019-04-16 17:36:33 -070057 * Packet Replication Engine (PRE) entry.
Carmelo Cascone58136812018-07-19 03:40:16 +020058 */
Carmelo Cascone9db4d5c2019-04-16 17:36:33 -070059 PRE_ENTRY("PRE entry");
Carmelo Cascone4c289b72019-01-22 15:30:45 -080060
61 private final String humanReadableName;
62
63 PiEntityType(String humanReadableName) {
64 this.humanReadableName = humanReadableName;
65 }
66
67 /**
68 * Returns a human readable representation of this PI entity type (useful
69 * for logging).
70 *
71 * @return string
72 */
73 public String humanReadableName() {
74 return humanReadableName;
75 }
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080076}