d0fabf4add71da83dae40d2e9837abd448264e6c
[vpnservice.git] / bgpmanager / bgpmanager-api / src / main / java / org.opendaylight.bgpmanager.api / IBgpManager.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.bgpmanager.api;
10
11 import java.util.Collection;
12
13 public interface IBgpManager {
14
15     /**
16      *
17      * @param rd
18      * @param importRts
19      * @param exportRts
20      */
21     public void addVrf(String rd, Collection<String> importRts, Collection<String> exportRts) throws Exception;
22
23     /**
24      *
25      * @param rd
26      */
27     public void deleteVrf(String rd) throws Exception;
28
29     /**
30      *
31      * @param rd
32      * @param prefix
33      * @param nextHop
34      * @param vpnLabel
35      */
36     public void addPrefix(String rd, String prefix, String nextHop, int vpnLabel) throws Exception;
37
38     /**
39      *
40      * @param rd
41      * @param prefix
42      */
43     public void deletePrefix(String rd, String prefix) throws Exception;
44
45     /**
46      *
47      * @param fileName
48      * @param logLevel
49      */
50     public void setQbgpLog(String fileName, String logLevel) throws Exception;
51
52     /**
53      * @param rd
54      * @param prefix
55      * @param nextHop
56      * @param vpnLabel
57      */
58     public void advertisePrefix(String rd, String prefix, String nextHop, int vpnLabel) throws Exception;
59
60     /**
61      *
62      * @param rd
63      * @param prefix
64      */
65     public void withdrawPrefix(String rd, String prefix) throws Exception;
66
67
68     public String getDCGwIP();
69
70 }