BgpManager commit for:
[vpnservice.git] / bgpmanager / bgpmanager-impl / src / main / java / org / opendaylight / bgpmanager / globals / BgpConfiguration.java
index e1d19502640b87addaf8fa339a7daf869db5724b..ae8bfb4bcd32b9b9daf51128c34cae0ea3e4ee0c 100644 (file)
@@ -7,18 +7,16 @@
  */
 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 = "";
-    int neighbourAsNum;
+    long neighbourAsNum = 0;
+    boolean configUpdated = false;
 
     public BgpConfiguration() {
     }
@@ -63,14 +61,20 @@ public class BgpConfiguration implements Serializable {
         this.neighbourIp = neighbourIp;
     }
 
-    public int getNeighbourAsNum() {
+    public long getNeighbourAsNum() {
         return neighbourAsNum;
     }
 
-    public void setNeighbourAsNum(int neighbourAsNum) {
+    public void setNeighbourAsNum(long 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{" +