2 * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
8 package org.opendaylight.bgpmanager.globals;
11 public class BgpConfiguration {
14 String bgpServer = "";
17 String neighbourIp = "";
18 long neighbourAsNum = 0;
19 boolean configUpdated = false;
21 public BgpConfiguration() {
24 public String getBgpServer() {
28 public void setBgpServer(String bgpServer) {
29 this.bgpServer = bgpServer;
32 public int getBgpPort() {
36 public void setBgpPort(int bgpPort) {
37 this.bgpPort = bgpPort;
40 public long getAsNum() {
44 public void setAsNum(long asNum) {
48 public String getRouterId() {
52 public void setRouterId(String routerId) {
53 this.routerId = routerId;
56 public String getNeighbourIp() {
60 public void setNeighbourIp(String neighbourIp) {
61 this.neighbourIp = neighbourIp;
64 public long getNeighbourAsNum() {
65 return neighbourAsNum;
68 public void setNeighbourAsNum(long neighbourAsNum) {
69 this.neighbourAsNum = neighbourAsNum;
72 public void setConfigUpdated() { this.configUpdated = true; }
74 public void unsetConfigUpdated() { this.configUpdated = false; }
76 public boolean isConfigUpdated() { return this.configUpdated; }
79 public String toString() {
80 return "BgpConfiguration{" +
82 ", bgpServer='" + bgpServer + '\'' +
83 ", bgpPort=" + bgpPort +
84 ", routerId='" + routerId + '\'' +
85 ", neighbourIp='" + neighbourIp + '\'' +
86 ", neighbourAsNum=" + neighbourAsNum +