tosinski | 36ba33a | 2021-11-22 16:53:00 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2021-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.net.behaviour.upf; |
| 18 | |
| 19 | import com.google.common.annotations.Beta; |
| 20 | |
| 21 | /** |
| 22 | * Type of UPF entity. |
| 23 | */ |
| 24 | @Beta |
| 25 | public enum UpfEntityType { |
| 26 | INTERFACE("interface"), |
| 27 | TERMINATION_DOWNLINK("termination_downlink"), |
| 28 | TERMINATION_UPLINK("termination_uplink"), |
| 29 | SESSION_DOWNLINK("session_downlink"), |
| 30 | SESSION_UPLINK("session_downlink"), |
| 31 | TUNNEL_PEER("tunnel_peer"), |
Daniele Moro | a1c7ba4 | 2022-01-13 19:16:34 +0100 | [diff] [blame] | 32 | COUNTER("counter"), |
Daniele Moro | 909b958 | 2022-01-26 15:47:29 +0100 | [diff] [blame^] | 33 | APPLICATION("application"), |
| 34 | SESSION_METER("session_meter"), |
| 35 | APPLICATION_METER("application_meter"); |
tosinski | 36ba33a | 2021-11-22 16:53:00 +0100 | [diff] [blame] | 36 | |
| 37 | private final String humanReadableName; |
| 38 | |
| 39 | UpfEntityType(String humanReadableName) { |
| 40 | this.humanReadableName = humanReadableName; |
| 41 | } |
| 42 | |
| 43 | /** |
Daniele Moro | f3a5ab0 | 2022-01-26 16:47:08 +0100 | [diff] [blame] | 44 | * Returns a human-readable representation of this UPF entity type (useful |
tosinski | 36ba33a | 2021-11-22 16:53:00 +0100 | [diff] [blame] | 45 | * for logging). |
| 46 | * |
| 47 | * @return string |
| 48 | */ |
| 49 | public String humanReadableName() { |
| 50 | return humanReadableName; |
| 51 | } |
| 52 | } |