summaryrefslogtreecommitdiffstats
path: root/vbd/api/src
diff options
context:
space:
mode:
authorJozef Gloncak <jgloncak@cisco.com>2016-02-09 15:03:53 +0100
committerGerrit Code Review <gerrit@fd.io>2016-02-09 16:22:39 +0000
commit5aa62ee7d2be070b2ffef0443b59c8891ed06845 (patch)
tree8a6d57d66fe2dea72dcdc4dd259cd9eba36561ac /vbd/api/src
parented1bb590d38c1581d35fd822564510ff22288510 (diff)
Adding vxlan tunnel id allocator.
Change-Id: Id638bc0262481921cd42d830e9fc788e76bc3907 Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Diffstat (limited to 'vbd/api/src')
-rw-r--r--vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java (renamed from vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java)8
1 files changed, 5 insertions, 3 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/VxlanTunnelIdAllocator.java
index 58c7e38f3..c458e5754 100644
--- a/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAlocator.java
+++ b/vbd/api/src/main/java/io.fd.honeycomb.vbd.api/VxlanTunnelIdAllocator.java
@@ -8,10 +8,12 @@
package io.fd.honeycomb.vbd.api;
-import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
+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 VxlanTunnelIdAlocator {
+public interface VxlanTunnelIdAllocator {
/**
* Allocate next available vxlan tunnel ID
@@ -19,5 +21,5 @@ public interface VxlanTunnelIdAlocator {
* @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);
+ Integer nextIdFor(final KeyedInstanceIdentifier<Node, NodeKey> vpp);
}