public interface BgpPeer
| Modifier and Type | Interface and Description |
|---|---|
static class |
BgpPeer.FlowSpecOperation |
| Modifier and Type | Method and Description |
|---|---|
void |
buildAdjRibIn(List<BgpValueType> pathAttr)
Maintaining Adj-RIB-In separately for each peer.
|
String |
channelId()
Identifies the channel used to communicate with the bgp peer.
|
void |
disconnectPeer()
Disconnects the bgp peer by closing the TCP connection.
|
BgpFactory |
factory()
Provides the factory for BGP version.
|
org.jboss.netty.channel.Channel |
getChannel()
Gets the associated Netty channel handler for this bgp peer.
|
boolean |
isConnected()
Checks if the bgp peer is still connected.
|
boolean |
isHandshakeComplete()
Checks whether the handshake is complete.
|
void |
sendMessage(BgpMessage msg)
Writes the message to the peer.
|
void |
sendMessage(List<BgpMessage> msgs)
Writes the BGPMessage list to the peer.
|
BgpSessionInfo |
sessionInfo()
Return the BGP session info.
|
void |
setChannel(org.jboss.netty.channel.Channel channel)
Sets the associated Netty channel for this bgp peer.
|
void |
setConnected(boolean connected)
Sets whether the bgp peer is connected.
|
void |
updateFlowSpec(BgpPeer.FlowSpecOperation operType,
BgpFlowSpecRouteKey routeKey,
BgpFlowSpecNlri flowSpec,
WideCommunity wideCommunity)
Updates flow specification rule.
|
void setChannel(org.jboss.netty.channel.Channel channel)
channel - the Netty channelorg.jboss.netty.channel.Channel getChannel()
void setConnected(boolean connected)
connected - whether the bgp peer is connectedboolean isHandshakeComplete()
void sendMessage(BgpMessage msg)
msg - the message to writevoid sendMessage(List<BgpMessage> msgs)
msgs - the messages to be writtenBgpFactory factory()
boolean isConnected()
void disconnectPeer()
String channelId()
void buildAdjRibIn(List<BgpValueType> pathAttr) throws BgpParseException
pathAttr - list of Bgp path attributesBgpParseException - while building Adj-Rib-InBgpSessionInfo sessionInfo()
void updateFlowSpec(BgpPeer.FlowSpecOperation operType, BgpFlowSpecRouteKey routeKey, BgpFlowSpecNlri flowSpec, WideCommunity wideCommunity)
operType - operation type add or delete or updaterouteKey - flow route key for the flow ruleflowSpec - BGP flow specification componentswideCommunity - for route policy