Bump version odlparent->6.0.0,mdsal->5.0.3
[genius.git] / networkutils / networkutils / src / main / java / org / opendaylight / genius / networkutils / VniUtils.java
1 /*
2  * Copyright © 2018 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
3  *
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 org.opendaylight.genius.networkutils;
9
10 import com.google.common.base.Optional;
11 import java.util.concurrent.ExecutionException;
12 import org.eclipse.jdt.annotation.Nullable;
13 import org.opendaylight.controller.md.sal.common.api.data.ReadFailedException;
14 import org.opendaylight.yang.gen.v1.urn.opendaylight.genius.idmanager.rev160406.id.pools.IdPool;
15 import org.opendaylight.yangtools.yang.common.Uint64;
16
17 public interface VniUtils {
18
19     @Nullable Uint64 getVNI(String vniKey) throws ExecutionException, InterruptedException;
20
21     void releaseVNI(String vniKey) throws ExecutionException, InterruptedException;
22
23     Optional<IdPool> getVxlanVniPool() throws ReadFailedException;
24 }