blob: 71f7adc8c4bbe8f419aea928a9f44addf30b07b3 [file] [log] [blame]
Marcos Aurelio Carreroeaf02b82019-11-25 13:34:25 -03001/*
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.opencord.dhcpl2relay.impl;
18
19import com.google.common.collect.ImmutableSet;
20
21import java.util.Set;
22
23/**
24 * Represents DHCP relay counters type.
25 */
26public enum DhcpL2RelayCounters {
27 /**
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 */
67 static final Set<DhcpL2RelayCounters> SUPPORTED_COUNTERS = ImmutableSet.of(DhcpL2RelayCounters.DHCPDISCOVER,
68 DhcpL2RelayCounters.DHCPRELEASE, DhcpL2RelayCounters.DHCPDECLINE,
69 DhcpL2RelayCounters.DHCPREQUEST, DhcpL2RelayCounters.DHCPOFFER,
70 DhcpL2RelayCounters.DHCPACK, DhcpL2RelayCounters.DHCPNACK,
71 DhcpL2RelayCounters.PACKETS_TO_SERVER,
72 DhcpL2RelayCounters.PACKETS_FROM_SERVER);
73 }