BGPManager module sync up
[netvirt.git] / vpnservice / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / netvirt / 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.netvirt.bgpmanager.thrift.gen;
9
10 public enum af_safi implements org.apache.thrift.TEnum {
11   SAFI_IPV4_LABELED_UNICAST(4),
12   SAFI_MPLS_VPN(5);
13
14   private final int value;
15
16   private af_safi(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 af_safi findByValue(int value) { 
32     switch (value) {
33       case 4:
34         return SAFI_IPV4_LABELED_UNICAST;
35       case 5:
36         return SAFI_MPLS_VPN;
37       default:
38         return null;
39     }
40   }
41 }