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(java.lang.String routerid,
int remoteAs)
Add the BGP peer IP address and the AS number to which it belongs.
|
boolean |
addPeer(java.lang.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(java.lang.String routerid,
short holdTime)
Add the BGP peer IP address and the keep alive time.
|
boolean |
connectPeer(java.lang.String routerid)
Connect to BGP peer with this IP address.
|
boolean |
disconnectPeer(java.lang.String routerid)
Disconnect this BGP peer with this IP address.
|
java.util.TreeMap<java.lang.String,BgpPeerCfg> |
displayPeers()
Returns the peer tree information.
|
BgpPeerCfg |
displayPeers(java.lang.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.
|
boolean |
getEvpnCapability()
Gets the evpn capability.
|
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(java.lang.String routerid)
Get the current peer connection state information.
|
java.util.TreeMap<java.lang.String,BgpPeerCfg> |
getPeerTree()
Return the peer tree map.
|
java.lang.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(java.lang.String routerid)
Check if this BGP peer is configured.
|
boolean |
isPeerConnectable(java.lang.String routerid)
Check if the peer can be connected or not.
|
boolean |
isPeerConnected(java.lang.String routerid)
Check if this BGP speaker is having connection with the peer.
|
boolean |
removePeer(java.lang.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 |
setEvpnCapability(boolean evpnCapability)
Sets the evpn capability.
|
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(java.lang.String routerid,
BgpPeerCfg.State state)
Set the current connection state information.
|
void |
setRouterId(java.lang.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 sessionjava.lang.String getRouterId()
void setRouterId(java.lang.String routerid)
routerid - IP address in string formatboolean addPeer(java.lang.String routerid,
int remoteAs)
routerid - IP address in string formatremoteAs - AS number to which it belongsboolean addPeer(java.lang.String routerid,
short holdTime)
routerid - IP address in string formatholdTime - keep alive time for the connectionboolean addPeer(java.lang.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(java.lang.String routerid)
routerid - router IP addressboolean connectPeer(java.lang.String routerid)
routerid - router IP addressboolean disconnectPeer(java.lang.String routerid)
routerid - router IP address in string formatjava.util.TreeMap<java.lang.String,BgpPeerCfg> displayPeers()
BgpPeerCfg displayPeers(java.lang.String routerid)
routerid - router IP address in string formatboolean isPeerConfigured(java.lang.String routerid)
routerid - router IP address in string formatboolean isPeerConnected(java.lang.String routerid)
routerid - router IP address in string formatjava.util.TreeMap<java.lang.String,BgpPeerCfg> getPeerTree()
void setPeerConnState(java.lang.String routerid,
BgpPeerCfg.State state)
routerid - router IP address in string formatstate - state informationboolean isPeerConnectable(java.lang.String routerid)
routerid - router IP address in string formatBgpPeerCfg.State getPeerConnState(java.lang.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 capabilityvoid setEvpnCapability(boolean evpnCapability)
evpnCapability - evpn capabilityboolean getEvpnCapability()