diff options
author | Jozef Gloncak <jgloncak@cisco.com> | 2016-02-05 16:49:21 +0100 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-02-08 21:51:53 +0000 |
commit | 1fe1660a989f6018115331e6a6c4b096ef088c82 (patch) | |
tree | be543e9ca228864c280e372de4d25576b94877f4 /vbd | |
parent | 4297ef6abf96b5fd1d6e0f1078a1ee9a76dc3f32 (diff) |
Adding vxlan tunnel id alocator interface.
Change-Id: I8a9835c064fb6ebaa29a47eaee8e7b87eb0cedac
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Diffstat (limited to 'vbd')
-rw-r--r-- | vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java b/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java new file mode 100644 index 000000000..58c7e38f3 --- /dev/null +++ b/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java @@ -0,0 +1,23 @@ +/** + * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved. + * <p> + * 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.NodeId; + + +public interface VxlanTunnelIdAlocator { + + /** + * 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 NodeId vpp); +} |