Merge changes I0e8c20b4,Id6b80c7e
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / globals / BgpConfiguration.java
1 /*
2  * Copyright (c) 2015 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 package org.opendaylight.bgpmanager.globals;
9
10 import java.io.Serializable;
11
12 public class BgpConfiguration implements Serializable {
13
14     private static final long serialVersionUID = 1L;
15
16     long asNum;
17     String bgpServer = "";
18     int bgpPort;
19     String routerId = "";
20     String neighbourIp = "";
21     int neighbourAsNum;
22
23     public BgpConfiguration() {
24     }
25
26     public String getBgpServer() {
27         return bgpServer;
28     }
29
30     public void setBgpServer(String bgpServer) {
31         this.bgpServer = bgpServer;
32     }
33
34     public int getBgpPort() {
35         return bgpPort;
36     }
37
38     public void setBgpPort(int bgpPort) {
39         this.bgpPort = bgpPort;
40     }
41
42     public long getAsNum() {
43         return asNum;
44     }
45
46     public void setAsNum(long asNum) {
47         this.asNum = asNum;
48     }
49
50     public String getRouterId() {
51         return routerId;
52     }
53
54     public void setRouterId(String routerId) {
55         this.routerId = routerId;
56     }
57
58     public String getNeighbourIp() {
59         return neighbourIp;
60     }
61
62     public void setNeighbourIp(String neighbourIp) {
63         this.neighbourIp = neighbourIp;
64     }
65
66     public int getNeighbourAsNum() {
67         return neighbourAsNum;
68     }
69
70     public void setNeighbourAsNum(int neighbourAsNum) {
71         this.neighbourAsNum = neighbourAsNum;
72     }
73
74     @Override
75     public String toString() {
76         return "BgpConfiguration{" +
77             "asNum=" + asNum +
78             ", bgpServer='" + bgpServer + '\'' +
79             ", bgpPort=" + bgpPort +
80             ", routerId='" + routerId + '\'' +
81             ", neighbourIp='" + neighbourIp + '\'' +
82             ", neighbourAsNum=" + neighbourAsNum +
83             '}';
84     }
85
86 }