public interface BgpController
| Modifier and Type | Method and Description |
|---|---|
void |
addLinkListener(BgpLinkListener listener)
Register a listener for BGP message events.
|
void |
addListener(BgpNodeListener listener)
Register a listener for BGP message events.
|
BgpLocalRib |
bgpLocalRib()
Return BGP local RIB instance.
|
BgpLocalRib |
bgpLocalRibVpn()
Return BGP local RIB instance with VPN.
|
void |
closeConnectedPeers()
Close all connected BGP peers.
|
int |
connectedPeerCount()
Get the BGP connected peers to this controller.
|
Map<BgpId,BgpPeer> |
connectedPeers()
Return BGP connected peers.
|
BgpCfg |
getConfig()
Get the BGPConfig class to the caller.
|
BgpPeer |
getPeer(BgpId bgpId)
Returns the actual bgp peer for the given ip address.
|
Iterable<BgpPeer> |
getPeers()
Returns list of bgp peers connected to this BGP controller.
|
Set<BgpLinkListener> |
linkListener()
Return BGP link listener.
|
Set<BgpNodeListener> |
listener()
Return BGP node listener.
|
BgpPeerManager |
peerManager()
Return BGP peer manager.
|
void |
processBgpPacket(BgpId bgpId,
BgpMessage msg)
Process a message and notify the appropriate listeners.
|
void |
removeLinkListener(BgpLinkListener listener)
Unregister a listener.
|
void |
removeListener(BgpNodeListener listener)
Unregister a listener.
|
void |
writeMsg(BgpId bgpId,
BgpMessage msg)
Send a message to a particular bgp peer.
|
Iterable<BgpPeer> getPeers()
BgpPeer getPeer(BgpId bgpId)
bgpId - the id of the bgp peer to fetchvoid addListener(BgpNodeListener listener)
listener - the listener to notifyvoid removeListener(BgpNodeListener listener)
listener - the listener to unregistervoid writeMsg(BgpId bgpId, BgpMessage msg)
bgpId - the id of the peer to send message.msg - the message to sendvoid processBgpPacket(BgpId bgpId, BgpMessage msg) throws BgpParseException
bgpId - id of the peer the message arrived onmsg - the message to process.BgpParseException - on data processing errorvoid closeConnectedPeers()
BgpCfg getConfig()
int connectedPeerCount()
BgpLocalRib bgpLocalRibVpn()
BgpLocalRib bgpLocalRib()
BgpPeerManager peerManager()
Map<BgpId,BgpPeer> connectedPeers()
Set<BgpNodeListener> listener()
void addLinkListener(BgpLinkListener listener)
listener - the listener to notifyvoid removeLinkListener(BgpLinkListener listener)
listener - the listener to unregisterSet<BgpLinkListener> linkListener()