Updated BgpManager for Be
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / thrift / gen / af_safi.java
1 /**
2  * Autogenerated by Thrift Compiler (0.9.1)
3  *
4  * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5  *  @generated
6  */
7
8 package org.opendaylight.bgpmanager.thrift.gen;
9
10 import java.util.Map;
11 import java.util.HashMap;
12 import org.apache.thrift.TEnum;
13
14 public enum af_safi implements org.apache.thrift.TEnum {
15   SAFI_IPV4_LABELED_UNICAST(4),
16   SAFI_MPLS_VPN(5);
17
18   private final int value;
19
20   private af_safi(int value) {
21     this.value = value;
22   }
23
24   /**
25    * Get the integer value of this enum value, as defined in the Thrift IDL.
26    */
27   public int getValue() {
28     return value;
29   }
30
31   /**
32    * Find a the enum type by its integer value, as defined in the Thrift IDL.
33    * @return null if the value is not found.
34    */
35   public static af_safi findByValue(int value) { 
36     switch (value) {
37       case 4:
38         return SAFI_IPV4_LABELED_UNICAST;
39       case 5:
40         return SAFI_MPLS_VPN;
41       default:
42         return null;
43     }
44   }
45 }