BUG 6389: ServChain not applied to VMs in VPN
[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 import java.math.BigInteger;
14 import java.util.List;
15
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);
20
21     /**
22      * Returns true if the specified VPN exists
23      *
24      * @param vpnName it must match against the vpn-instance-name attrib in one of the VpnInstances
25      *
26      * @return
27      */
28     boolean existsVpn(String vpnName);
29     boolean isVPNConfigured();
30
31     long getArpCacheTimeoutMillis();
32     /**
33      * Retrieves the list of DPNs where the specified VPN has footprint
34      *
35      * @param vpnInstanceName The name of the Vpn instance
36      * @return The list of DPNs
37      */
38     List<BigInteger> getDpnsOnVpn(String vpnInstanceName);
39 }