blob: 11df778ec8ea7f41060bbd23728a3b4263d677b4 [file] [log] [blame]
Carmelo Casconed4129842018-01-31 14:45:43 -08001package org.onosproject.drivers.barefoot.pro.pal;
2
3/**
4 * Autogenerated by Thrift Compiler (0.11.0)
5 *
6 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
7 * @generated
8 */
9
10public enum pal_oper_status_t implements org.apache.thrift.TEnum {
11 BF_PORT_DOWN(0),
12 BF_PORT_UP(1);
13
14 private final int value;
15
16 private pal_oper_status_t(int value) {
17 this.value = value;
18 }
19
20 /**
21 * Get the integer value of this enum value, as defined in the Thrift IDL.
22 */
23 public int getValue() {
24 return value;
25 }
26
27 /**
28 * Find a the enum type by its integer value, as defined in the Thrift IDL.
29 * @return null if the value is not found.
30 */
31 public static pal_oper_status_t findByValue(int value) {
32 switch (value) {
33 case 0:
34 return BF_PORT_DOWN;
35 case 1:
36 return BF_PORT_UP;
37 default:
38 return null;
39 }
40 }
41}