Adding vxlan tunnel id allocator.
[honeycomb.git] / vbd / impl / src / main / java / io / fd / honeycomb / vbd / impl / VbdUtil.java
index ecc9703..2a29d7b 100644 (file)
@@ -17,6 +17,9 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 
 public class VbdUtil {
 
+    private static final String TUNNEL_ID_PREFIX = "vxlan_tunnel";
+
+
     private VbdUtil() {
         throw new UnsupportedOperationException("Can't instantiate util class");
     }
@@ -33,5 +36,9 @@ public class VbdUtil {
         return null;
     }
 
+    static String provideVxlanId(final int vxlanTunnelId) {
+        return TUNNEL_ID_PREFIX + vxlanTunnelId;
+    }
+
 
 }