Vidyashree Rama
Committed by Ray Milkey

[ONOS-2596] BGP Open message issue fix

Change-Id: I3c836950f851bc3ff02bc826d9128787133ae5d7
......@@ -72,13 +72,6 @@ public interface BGPOpenMsg extends BGPMessage {
BGPOpenMsg build() throws BGPParseException;
/**
* Returns hold time of Open Message.
*
* @return hold time of Open Message
*/
short getHoldTime();
/**
* Sets hold time in Open Message and return its builder.
*
* @param holdtime hold timer value in open message
......@@ -87,13 +80,6 @@ public interface BGPOpenMsg extends BGPMessage {
Builder setHoldTime(short holdtime);
/**
* Returns as number of Open Message.
*
* @return as number of Open Message
*/
short getAsNumber();
/**
* Sets AS number in Open Message and return its builder.
*
* @param asNumber as number in open message
......@@ -102,13 +88,6 @@ public interface BGPOpenMsg extends BGPMessage {
Builder setAsNumber(short asNumber);
/**
* Returns BGP Identifier of Open Message.
*
* @return BGP Identifier of Open Message
*/
int getBgpId();
/**
* Sets BGP Identifier in Open Message and return its builder.
*
* @param bgpId BGP Identifier in open message
......@@ -117,13 +96,6 @@ public interface BGPOpenMsg extends BGPMessage {
Builder setBgpId(int bgpId);
/**
* Returns capabilities of Open Message.
*
* @return capabilities of Open Message
*/
LinkedList<BGPValueType> getCapabilityTlv();
/**
* Sets capabilities in Open Message and return its builder.
*
* @param capabilityTlv capabilities in open message
......
......@@ -311,8 +311,8 @@ public class BGPOpenMsgVer4 implements BGPOpenMsg {
if (this.isLargeAsCapabilityTlvSet) {
BGPValueType tlv;
int iValue = this.getAsNumber();
tlv = new FourOctetAsNumCapabilityTlv(iValue);
int value = this.asNumber;
tlv = new FourOctetAsNumCapabilityTlv(value);
this.capabilityTlv.add(tlv);
}
......@@ -333,26 +333,6 @@ public class BGPOpenMsgVer4 implements BGPOpenMsg {
}
@Override
public short getHoldTime() {
return this.holdTime;
}
@Override
public short getAsNumber() {
return this.asNumber;
}
@Override
public int getBgpId() {
return this.bgpId;
}
@Override
public LinkedList<BGPValueType> getCapabilityTlv() {
return this.capabilityTlv;
}
@Override
public Builder setHoldTime(short holdTime) {
this.holdTime = holdTime;
this.isHoldTimeSet = true;
......