public interface BgpCfg
| Modifier and Type | Interface and Description |
|---|---|
static class |
BgpCfg.FlowSpec |
static class |
BgpCfg.State |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addPeer(String routerid,
int remoteAs)
Add the BGP peer IP address and the AS number to which it belongs.
|
boolean |
addPeer(String routerid,
int remoteAs,
short holdTime)
Add the BGP peer IP address, the AS number to which it belongs and keep alive time.
|
boolean |
addPeer(String routerid,
short holdTime)
Add the BGP peer IP address and the keep alive time.
|
boolean |
connectPeer(String routerid)
Connect to BGP peer with this IP address.
|
boolean |
disconnectPeer(String routerid)
Disconnect this BGP peer with this IP address.
|
TreeMap<String,BgpPeerCfg> |
displayPeers()
Returns the peer tree information.
|
BgpPeerCfg |
displayPeers(String routerid)
Return the BGP Peer information with this matching IP.
|
BgpCfg.FlowSpec |
flowSpecCapability()
Gets the flow specification capability.
|
boolean |
flowSpecRpdCapability()
Returns the flow specification route policy distribution capability.
|
int |
getAsNumber()
Get the AS number to which this BGP speaker belongs.
|
short |
getHoldTime()
Returns the connection hold timer in seconds.
|
boolean |
getLargeASCapability()
Get the status of the 32 bit AS support for this BGP speaker.
|
boolean |
getLsCapability()
Get the status of the link state support for this BGP speaker.
|
int |
getMaxConnRetryCount()
Get the connection retry count number.
|
int |
getMaxConnRetryTime()
Get the connection retry time in seconds.
|
int |
getMaxSession()
Returns the maximum number of session supported.
|
BgpPeerCfg.State |
getPeerConnState(String routerid)
Get the current peer connection state information.
|
TreeMap<String,BgpPeerCfg> |
getPeerTree()
Return the peer tree map.
|
String |
getRouterId()
Returns the Router ID of this BGP speaker.
|
BgpCfg.State |
getState()
Returns the status of the configuration based on this state certain operations like connection is handled.
|
boolean |
isPeerConfigured(String routerid)
Check if this BGP peer is configured.
|
boolean |
isPeerConnectable(String routerid)
Check if the peer can be connected or not.
|
boolean |
isPeerConnected(String routerid)
Check if this BGP speaker is having connection with the peer.
|
boolean |
removePeer(String routerid)
Remove the BGP peer with this IP address.
|
void |
setAsNumber(int localAs)
Set the AS number to which this BGP speaker belongs.
|
void |
setFlowSpecCapability(BgpCfg.FlowSpec flowSpec)
Sets the flow specification capability.
|
void |
setFlowSpecRpdCapability(boolean rpdCapability)
Sets the flow specification route policy distribution capability.
|
void |
setHoldTime(short holdTime)
Set the keep alive timer for the connection.
|
void |
setLargeASCapability(boolean largeAs)
Set the 32 bit AS support capability to this BGP speaker.
|
void |
setLsCapability(boolean lscapability)
Set the link state support to this BGP speaker.
|
void |
setMaxConnRetryCout(int retryCount)
Set the connection retry count.
|
void |
setMaxConnRetryTime(int retryTime)
Set the connection retry time in seconds.
|
void |
setMaxSession(int maxsession)
Set the maximum number of sessions to support.
|
void |
setPeerConnState(String routerid,
BgpPeerCfg.State state)
Set the current connection state information.
|
void |
setRouterId(String routerid)
Set the Router ID of this BGP speaker.
|
void |
setState(BgpCfg.State state)
To set the current state of the configuration.
|
BgpCfg.State getState()
void setState(BgpCfg.State state)
state - Configuration State enumboolean getLsCapability()
void setLsCapability(boolean lscapability)
lscapability - true value if link state is supported else falseboolean getLargeASCapability()
void setLargeASCapability(boolean largeAs)
largeAs - true value if the 32 bit AS is supported else falsevoid setAsNumber(int localAs)
localAs - 16 or 32 bit AS number, length is dependent on the capabilityint getAsNumber()
int getMaxConnRetryCount()
void setMaxConnRetryCout(int retryCount)
retryCount - number of times to try to connect if there is any errorint getMaxConnRetryTime()
void setMaxConnRetryTime(int retryTime)
retryTime - connection retry times in secondsvoid setHoldTime(short holdTime)
holdTime - connection hold timer in secondsshort getHoldTime()
int getMaxSession()
void setMaxSession(int maxsession)
maxsession - maximum number of sessionString getRouterId()
void setRouterId(String routerid)
routerid - IP address in string formatboolean addPeer(String routerid, int remoteAs)
routerid - IP address in string formatremoteAs - AS number to which it belongsboolean addPeer(String routerid, short holdTime)
routerid - IP address in string formatholdTime - keep alive time for the connectionboolean addPeer(String routerid, int remoteAs, short holdTime)
routerid - IP address in string formatremoteAs - AS number to which it belongsholdTime - keep alive time for the connectionboolean removePeer(String routerid)
routerid - router IP addressboolean connectPeer(String routerid)
routerid - router IP addressboolean disconnectPeer(String routerid)
routerid - router IP address in string formatTreeMap<String,BgpPeerCfg> displayPeers()
BgpPeerCfg displayPeers(String routerid)
routerid - router IP address in string formatboolean isPeerConfigured(String routerid)
routerid - router IP address in string formatboolean isPeerConnected(String routerid)
routerid - router IP address in string formatTreeMap<String,BgpPeerCfg> getPeerTree()
void setPeerConnState(String routerid, BgpPeerCfg.State state)
routerid - router IP address in string formatstate - state informationboolean isPeerConnectable(String routerid)
routerid - router IP address in string formatBgpPeerCfg.State getPeerConnState(String routerid)
routerid - router IP address in string formatBgpCfg.FlowSpec flowSpecCapability()
void setFlowSpecCapability(BgpCfg.FlowSpec flowSpec)
flowSpec - flow specification capabilityboolean flowSpecRpdCapability()
void setFlowSpecRpdCapability(boolean rpdCapability)
rpdCapability - flow specification RPD capability