public class BgpConfig extends Config<ApplicationId>
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
BgpConfig.BgpSpeakerConfig
Configuration for a BGP speaker. 
 | 
Config.FieldPresence| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONNECT_POINT  | 
static String | 
NAME  | 
static String | 
PEERS  | 
static String | 
SPEAKERS  | 
static String | 
VLAN  | 
| Constructor and Description | 
|---|
BgpConfig()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addPeerToSpeaker(String speakerName,
                IpAddress peerAddress)
Adds peering address to BGP speaker. 
 | 
void | 
addSpeaker(BgpConfig.BgpSpeakerConfig speaker)
Adds a BGP speaker to the configuration. 
 | 
Set<BgpConfig.BgpSpeakerConfig> | 
bgpSpeakers()
Gets the set of configured BGP speakers. 
 | 
BgpConfig.BgpSpeakerConfig | 
getSpeakerFromPeer(IpAddress peerAddress)
Finds BGP speaker peering with a given external peer. 
 | 
BgpConfig.BgpSpeakerConfig | 
getSpeakerWithName(String name)
Examines whether a name of BGP speaker exists in configuration. 
 | 
void | 
removePeerFromSpeaker(BgpConfig.BgpSpeakerConfig speaker,
                     IpAddress peerAddress)
Removes peering address from BGP speaker. 
 | 
void | 
removeSpeaker(String speakerName)
Removes BGP speaker from configuration. 
 | 
apply, clear, get, get, get, get, get, get, getList, getList, hasField, hasField, hasFields, hasFields, hasOnlyFields, hasOnlyFields, init, isBoolean, isBoolean, isConnectPoint, isConnectPoint, isDecimal, isDecimal, isIntegralNumber, isIntegralNumber, isIpAddress, isIpAddress, isIpPrefix, isIpPrefix, isMacAddress, isMacAddress, isNumber, isNumber, isString, isString, isTpPort, isTpPort, isValid, isValidLength, key, node, setList, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subject, toStringpublic static final String SPEAKERS
public static final String CONNECT_POINT
public static final String NAME
public static final String PEERS
public static final String VLAN
public Set<BgpConfig.BgpSpeakerConfig> bgpSpeakers()
public BgpConfig.BgpSpeakerConfig getSpeakerWithName(String name)
name - the name of BGP speaker being searchpublic void addSpeaker(BgpConfig.BgpSpeakerConfig speaker)
speaker - the BGP speaker configuration entrypublic void removeSpeaker(String speakerName)
speakerName - BGP speaker namepublic void addPeerToSpeaker(String speakerName, IpAddress peerAddress)
speakerName - name of BGP speakerpeerAddress - peering address to be addedpublic BgpConfig.BgpSpeakerConfig getSpeakerFromPeer(IpAddress peerAddress)
peerAddress - BGP peer addresspublic void removePeerFromSpeaker(BgpConfig.BgpSpeakerConfig speaker, IpAddress peerAddress)
speaker - BGP speaker configuration entriespeerAddress - peering address to be removed