public class BGPPeer extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
name |
protected String |
peerAddress |
protected long |
peerAutNum |
protected String |
peerRegistry |
protected Set<BGPRoute> |
routes |
protected Set<BGPRouteTable> |
routeTables |
protected BGPInetRtr |
speaker |
| Constructor and Description |
|---|
BGPPeer(long peerAutNum,
String peerAddress,
BGPInetRtr speaker)
Construct a new BGPPeer of a given InetRtr/Speaker
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRouteTable(BGPRouteTable newTable)
Add a routing table to the BGPPeer.
|
boolean |
equals(Object o) |
String |
getName()
Get the configured name of the peer
|
String |
getPeerAddress()
Get address of peer
|
long |
getPeerAutNum()
Get the Autonomous System number of the peer
|
String |
getPeerRegistry()
Get the name of the peer/speakers peer-registry (OpenDaylight Specific)
|
Set<BGPRoute> |
getRoutes()
Return a copy of the peers route table
|
BGPInetRtr |
getSpeaker()
Get the speaker of the peer's session
|
int |
hashCode() |
String |
toString() |
protected Set<BGPRouteTable> routeTables
protected BGPInetRtr speaker
protected String peerAddress
protected String peerRegistry
protected String name
protected long peerAutNum
public BGPPeer(long peerAutNum,
String peerAddress,
BGPInetRtr speaker)
peerAutNum - AS of the peerpeerAddress - Address of the peerspeaker - BGP Speaker peered with this objectpublic boolean addRouteTable(BGPRouteTable newTable)
newTable - table to add to peerpublic Set<BGPRoute> getRoutes()
public BGPInetRtr getSpeaker()
public String getPeerAddress()
public String getPeerRegistry()
public String getName()
public long getPeerAutNum()
Copyright © 2015. All rights reserved.