Merge "pom cleanup, odlparent-lite"
[netvirt.git] / vpnservice / vpnmanager / vpnmanager-api / src / main / java / org / opendaylight / netvirt / vpnmanager / api / IVpnManager.java
1 /*
2  * Copyright (c) 2015 - 2016 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
9 package org.opendaylight.netvirt.vpnmanager.api;
10
11 import org.opendaylight.netvirt.fibmanager.api.IFibManager;
12
13 public interface IVpnManager {
14     void setFibManager(IFibManager fibManager);
15     void addExtraRoute(String destination, String nextHop, String rd, String routerID, int label);
16     void delExtraRoute(String destination, String nextHop, String rd, String routerID);
17
18     /**
19      * Returns true if the specified VPN exists
20      *
21      * @param vpnName it must match against the vpn-instance-name attrib in one of the VpnInstances
22      *
23      * @return
24      */
25     boolean existsVpn(String vpnName);
26     boolean isVPNConfigured();
27
28     long getArpCacheTimeoutMillis();
29 }