From 5aa62ee7d2be070b2ffef0443b59c8891ed06845 Mon Sep 17 00:00:00 2001 From: Jozef Gloncak Date: Tue, 9 Feb 2016 15:03:53 +0100 Subject: Adding vxlan tunnel id allocator. Change-Id: Id638bc0262481921cd42d830e9fc788e76bc3907 Signed-off-by: Jozef Gloncak --- .../VxlanTunnelIdAllocator.java | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java (limited to 'vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java') diff --git a/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java b/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java new file mode 100644 index 000000000..c458e5754 --- /dev/null +++ b/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java @@ -0,0 +1,25 @@ +/** + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + *

+ * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ +package io.fd.honeycomb.vbd.api; + + +import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node; +import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.NodeKey; +import org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier; + + +public interface VxlanTunnelIdAllocator { + + /** + * Allocate next available vxlan tunnel ID + * + * @param vpp specify contret vpp for which is next available vxlan id looked for + * @return next available (in order) vxlan id. + */ + Integer nextIdFor(final KeyedInstanceIdentifier vpp); +} -- cgit 1.2.3-korg