65d4f0a5cd596a675ccc30e9751db2949ff78a18
[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
11 public class BgpConfiguration {
12
13     long asNum = 0;
14     String bgpServer = "";
15     int bgpPort;
16     String routerId = "";
17     String neighbourIp = "";
18     long neighbourAsNum = 0;
19     boolean configUpdated = false;
20
21     public BgpConfiguration() {
22     }
23
24     public String getBgpServer() {
25         return bgpServer;
26     }
27
28     public void setBgpServer(String bgpServer) {
29         this.bgpServer = bgpServer;
30     }
31
32     public int getBgpPort() {
33         return bgpPort;
34     }
35
36     public void setBgpPort(int bgpPort) {
37         this.bgpPort = bgpPort;
38     }
39
40     public long getAsNum() {
41         return asNum;
42     }
43
44     public void setAsNum(long asNum) {
45         this.asNum = asNum;
46     }
47
48     public String getRouterId() {
49         return routerId;
50     }
51
52     public void setRouterId(String routerId) {
53         this.routerId = routerId;
54     }
55
56     public String getNeighbourIp() {
57         return neighbourIp;
58     }
59
60     public void setNeighbourIp(String neighbourIp) {
61         this.neighbourIp = neighbourIp;
62     }
63
64     public long getNeighbourAsNum() {
65         return neighbourAsNum;
66     }
67
68     public void setNeighbourAsNum(long neighbourAsNum) {
69         this.neighbourAsNum = neighbourAsNum;
70     }
71
72     public void setConfigUpdated() { this.configUpdated = true; }
73
74     public void unsetConfigUpdated() { this.configUpdated = false; }
75
76     public boolean isConfigUpdated() { return this.configUpdated; }
77
78     @Override
79     public String toString() {
80         return "BgpConfiguration{" +
81             "asNum=" + asNum +
82             ", bgpServer='" + bgpServer + '\'' +
83             ", bgpPort=" + bgpPort +
84             ", routerId='" + routerId + '\'' +
85             ", neighbourIp='" + neighbourIp + '\'' +
86             ", neighbourAsNum=" + neighbourAsNum +
87             '}';
88     }
89
90 }