blob: e61abf1cd8938148ab3a93a34ae901be57a0f0c6 [file] [log] [blame]
tosinski36ba33a2021-11-22 16:53:00 +01001/*
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
17package org.onosproject.net.behaviour.upf;
18
19import com.google.common.annotations.Beta;
20
21/**
22 * Type of UPF entity.
23 */
24@Beta
25public 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 Moroa1c7ba42022-01-13 19:16:34 +010032 COUNTER("counter"),
33 APPLICATION("application");
tosinski36ba33a2021-11-22 16:53:00 +010034
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}