public interface BgpPeerCfg
| Modifier and Type | Interface and Description |
|---|---|
static class |
BgpPeerCfg.State |
| Modifier and Type | Method and Description |
|---|---|
BgpConnectPeer |
connectPeer()
Get the peer connect instance.
|
int |
getAsNumber()
Returns the AS number to which this peer belongs.
|
short |
getHoldtime()
Get the keep alive timer value configured.
|
boolean |
getIsIBgp()
Return the connection type eBGP or iBGP.
|
String |
getPeerRouterId()
Return the peer router IP address.
|
boolean |
getSelfInnitConnection()
Returns the connection is initiated from us or not.
|
BgpPeerCfg.State |
getState()
Returns the connection State information of the peer.
|
void |
setAsNumber(int asNumber)
Set the AS number to which this peer belongs.
|
void |
setConnectPeer(BgpConnectPeer connectpeer)
Set the peer connect instance.
|
void |
setHoldtime(short holdTime)
Set the keep alive timer value.
|
void |
setIsIBgp(boolean isIBgp)
Set the connection type eBGP or iBGP.
|
void |
setPeerRouterId(String peerId)
Set the peer router IP address.
|
void |
setPeerRouterId(String peerId,
int asNumber)
Set the peer router IP address and AS number.
|
void |
setSelfInnitConnection(boolean selfInit)
Set the connection is initiated from us or not.
|
void |
setState(BgpPeerCfg.State state)
Set the connection state information of the peer.
|
BgpPeerCfg.State getState()
void setState(BgpPeerCfg.State state)
state - enum stateboolean getSelfInnitConnection()
void setSelfInnitConnection(boolean selfInit)
selfInit - true if the connection is initiated by this peer, false if it has been received.int getAsNumber()
void setAsNumber(int asNumber)
asNumber - AS numbershort getHoldtime()
void setHoldtime(short holdTime)
holdTime - keep alive timer value in secondsboolean getIsIBgp()
void setIsIBgp(boolean isIBgp)
isIBgp - true if iBGP, false if it is eBGPString getPeerRouterId()
void setPeerRouterId(String peerId)
peerId - IP address in string formatvoid setPeerRouterId(String peerId, int asNumber)
peerId - IP address in string formatasNumber - AS numbervoid setConnectPeer(BgpConnectPeer connectpeer)
connectpeer - connect peer instanceBgpConnectPeer connectPeer()