blob: f29d9e32ec0802222ad4de810c101173d65c35e3 [file] [log] [blame]
Marcos Aurelio Carreroeaf02b82019-11-25 13:34:25 -03001/*
Joey Armstrong7e08d2a2022-12-30 12:25:42 -05002 * Copyright 2017-2023 Open Networking Foundation (ONF) and the ONF Contributors
Marcos Aurelio Carreroeaf02b82019-11-25 13:34:25 -03003 *
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.opencord.dhcpl2relay.impl;
18
19import com.google.common.collect.ImmutableSet;
20
21import java.util.Set;
22
23/**
24 * Represents DHCP relay counters type.
25 */
Jonathan Hart77ca3152020-02-21 14:31:21 -080026public enum DhcpL2RelayCounterNames {
Marcos Aurelio Carreroeaf02b82019-11-25 13:34:25 -030027 /**
28 * DHCP relay counter of type Discover.
29 */
30 DHCPDISCOVER,
31 /**
32 * DHCP relay counter of type Release.
33 */
34 DHCPRELEASE,
35 /**
36 * DHCP relay counter of type Decline.
37 */
38 DHCPDECLINE,
39 /**
40 * DHCP relay counter of type Request.
41 */
42 DHCPREQUEST,
43 /**
44 * DHCP relay counter of type Offer.
45 */
46 DHCPOFFER,
47 /**
48 * DHCP relay counter of type ACK.
49 */
50 DHCPACK,
51 /**
52 * DHCP relay counter of type NACK.
53 */
54 DHCPNACK,
55 /**
56 * DHCP relay counter of type Packets_to_server.
57 */
58 PACKETS_TO_SERVER,
59 /**
60 * DHCP relay counter of type Packets_from_server.
61 */
62 PACKETS_FROM_SERVER;
63
64 /**
65 * Supported types of DHCP relay counters.
66 */
Jonathan Hart77ca3152020-02-21 14:31:21 -080067 static final Set<DhcpL2RelayCounterNames> SUPPORTED_COUNTERS = ImmutableSet.of(DhcpL2RelayCounterNames.DHCPDISCOVER,
68 DhcpL2RelayCounterNames.DHCPRELEASE, DhcpL2RelayCounterNames.DHCPDECLINE,
69 DhcpL2RelayCounterNames.DHCPREQUEST, DhcpL2RelayCounterNames.DHCPOFFER,
70 DhcpL2RelayCounterNames.DHCPACK, DhcpL2RelayCounterNames.DHCPNACK,
71 DhcpL2RelayCounterNames.PACKETS_TO_SERVER,
72 DhcpL2RelayCounterNames.PACKETS_FROM_SERVER);
Marcos Aurelio Carreroeaf02b82019-11-25 13:34:25 -030073 }