58c7e38f34341c059e56d76ce82312da81b38e35
[honeycomb.git] / vbd / api / src / main / java / io.fd.honeycomb.vbd.api / VxlanTunnelIdAlocator.java
1 /**
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  * <p>
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package io.fd.honeycomb.vbd.api;
9
10
11 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
12
13
14 public interface VxlanTunnelIdAlocator {
15
16     /**
17      * Allocate next available vxlan tunnel ID
18      *
19      * @param vpp specify contret vpp for which is next available vxlan id looked for
20      * @return next available (in order) vxlan id.
21      */
22     Integer nextIdFor(final NodeId vpp);
23 }