Marcos Aurelio Carrero | eaf02b8 | 2019-11-25 13:34:25 -0300 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 17 | package org.opencord.dhcpl2relay.impl; |
| 18 | |
| 19 | import com.google.common.collect.ImmutableSet; |
| 20 | |
| 21 | import java.util.Set; |
| 22 | |
| 23 | /** |
| 24 | * Represents DHCP relay counters type. |
| 25 | */ |
Jonathan Hart | 77ca315 | 2020-02-21 14:31:21 -0800 | [diff] [blame] | 26 | public enum DhcpL2RelayCounterNames { |
Marcos Aurelio Carrero | eaf02b8 | 2019-11-25 13:34:25 -0300 | [diff] [blame] | 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 | */ |
Jonathan Hart | 77ca315 | 2020-02-21 14:31:21 -0800 | [diff] [blame] | 67 | 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 Carrero | eaf02b8 | 2019-11-25 13:34:25 -0300 | [diff] [blame] | 73 | } |