blob: 0e991888c40797be00f403d8e9e9160dcab45db7 [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 /**
57 * Packet Replication Engine (PRE) multicast group entry.
58 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080059 PRE_MULTICAST_GROUP_ENTRY("PRE multicast group entry"),
Carmelo Cascone58136812018-07-19 03:40:16 +020060
61 /**
62 * Packet Replication Engine (PRE) clone session entry.
63 */
Carmelo Cascone4c289b72019-01-22 15:30:45 -080064 PRE_CLONE_SESSION_ENTRY("PRE clone session entry");
65
66 private final String humanReadableName;
67
68 PiEntityType(String humanReadableName) {
69 this.humanReadableName = humanReadableName;
70 }
71
72 /**
73 * Returns a human readable representation of this PI entity type (useful
74 * for logging).
75 *
76 * @return string
77 */
78 public String humanReadableName() {
79 return humanReadableName;
80 }
Carmelo Cascone1a7e4f92017-11-20 23:04:02 -080081}