2 * Copyright (c) 2015 - 2016 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
9 package org.opendaylight.netvirt.vpnmanager.api;
11 import org.opendaylight.netvirt.fibmanager.api.IFibManager;
13 import java.math.BigInteger;
14 import java.util.List;
16 public interface IVpnManager {
17 void setFibManager(IFibManager fibManager);
18 void addExtraRoute(String destination, String nextHop, String rd, String routerID, int label);
19 void delExtraRoute(String destination, String nextHop, String rd, String routerID);
22 * Returns true if the specified VPN exists
24 * @param vpnName it must match against the vpn-instance-name attrib in one of the VpnInstances
28 boolean existsVpn(String vpnName);
29 boolean isVPNConfigured();
31 long getArpCacheTimeoutMillis();
33 * Retrieves the list of DPNs where the specified VPN has footprint
35 * @param vpnInstanceName The name of the Vpn instance
36 * @return The list of DPNs
38 List<BigInteger> getDpnsOnVpn(String vpnInstanceName);