tosinski | a57652d | 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 | 97fd80c | 2022-01-13 19:16:34 +0100 | [diff] [blame^] | 32 | COUNTER("counter"), |
| 33 | APPLICATION("application"); |
tosinski | a57652d | 2021-11-22 16:53:00 +0100 | [diff] [blame] | 34 | |
| 35 | private final String humanReadableName; |
| 36 | |
| 37 | UpfEntityType(String humanReadableName) { |
| 38 | this.humanReadableName = humanReadableName; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * Returns a human readable representation of this UPF entity type (useful |
| 43 | * for logging). |
| 44 | * |
| 45 | * @return string |
| 46 | */ |
| 47 | public String humanReadableName() { |
| 48 | return humanReadableName; |
| 49 | } |
| 50 | } |