Code Review
/
vpnservice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BgpManager commit for:
[vpnservice.git]
/
bgpmanager
/
bgpmanager-impl
/
src
/
main
/
java
/
org
/
opendaylight
/
bgpmanager
/
globals
/
BgpConfiguration.java
diff --git
a/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/globals/BgpConfiguration.java
b/bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/globals/BgpConfiguration.java
index e1d19502640b87addaf8fa339a7daf869db5724b..ae8bfb4bcd32b9b9daf51128c34cae0ea3e4ee0c 100644
(file)
--- a/
bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/globals/BgpConfiguration.java
+++ b/
bgpmanager/bgpmanager-impl/src/main/java/org/opendaylight/bgpmanager/globals/BgpConfiguration.java
@@
-7,18
+7,16
@@
*/
package org.opendaylight.bgpmanager.globals;
*/
package org.opendaylight.bgpmanager.globals;
-import java.io.Serializable;
-public class BgpConfiguration implements Serializable {
-
- private static final long serialVersionUID = 1L;
+public class BgpConfiguration {
long asNum;
String bgpServer = "";
int bgpPort;
String routerId = "";
String neighbourIp = "";
long asNum;
String bgpServer = "";
int bgpPort;
String routerId = "";
String neighbourIp = "";
- int neighbourAsNum;
+ long neighbourAsNum = 0;
+ boolean configUpdated = false;
public BgpConfiguration() {
}
public BgpConfiguration() {
}
@@
-63,14
+61,20
@@
public class BgpConfiguration implements Serializable {
this.neighbourIp = neighbourIp;
}
this.neighbourIp = neighbourIp;
}
- public
int
getNeighbourAsNum() {
+ public
long
getNeighbourAsNum() {
return neighbourAsNum;
}
return neighbourAsNum;
}
- public void setNeighbourAsNum(
int
neighbourAsNum) {
+ public void setNeighbourAsNum(
long
neighbourAsNum) {
this.neighbourAsNum = neighbourAsNum;
}
this.neighbourAsNum = neighbourAsNum;
}
+ public void setConfigUpdated() { this.configUpdated = true; }
+
+ public void unsetConfigUpdated() { this.configUpdated = false; }
+
+ public boolean isConfigUpdated() { return this.configUpdated; }
+
@Override
public String toString() {
return "BgpConfiguration{" +
@Override
public String toString() {
return "BgpConfiguration{" +