2 * Copyright © 2018 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
8 package org.opendaylight.genius.networkutils;
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;
17 public interface VniUtils {
19 @Nullable Uint64 getVNI(String vniKey) throws ExecutionException, InterruptedException;
21 void releaseVNI(String vniKey) throws ExecutionException, InterruptedException;
23 Optional<IdPool> getVxlanVniPool() throws ReadFailedException;