public class BgpAppConfig
extends org.onosproject.net.config.Config<org.onosproject.core.ApplicationId>
| Modifier and Type | Class and Description |
|---|---|
static class |
BgpAppConfig.BgpPeerConfig
Configuration for Bgp peer nodes.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
BGP_PEER |
static String |
HOLD_TIME |
static String |
LARGE_AS_CAPABILITY |
static String |
LOCAL_AS |
static String |
LS_CAPABILITY |
static String |
MAX_SESSION |
static String |
PEER_CONNECT_ACTIVE |
static String |
PEER_CONNECT_MODE |
static String |
PEER_CONNECT_PASSIVE |
static String |
PEER_HOLD_TIME |
static String |
PEER_IP |
static String |
REMOTE_AS |
static String |
ROUTER_ID |
| Constructor and Description |
|---|
BgpAppConfig() |
| Modifier and Type | Method and Description |
|---|---|
List<BgpAppConfig.BgpPeerConfig> |
bgpPeer()
Returns the set of nodes read from network config.
|
short |
holdTime()
Returns holdTime of the local node from the configuration.
|
boolean |
isValid() |
boolean |
largeAsCapability()
Returns largeAs capability support from the configuration.
|
int |
localAs()
Returns localAs number from the configuration.
|
boolean |
lsCapability()
Returns BGP-LS capability support from the configuration.
|
int |
maxSession()
Returns max session from the configuration.
|
String |
routerId()
Returns routerId from the configuration.
|
boolean |
validateBgpConfiguration()
Validates the Bgp local and peer configuration.
|
boolean |
validateBgpPeers()
Validates the Bgp peer configuration.
|
boolean |
validateLocalAs()
Validates the Bgp As number.
|
boolean |
validatePeerHoldTime(long remoteAs)
Validates the Bgp peer holdTime.
|
boolean |
validateRemoteAs(long remoteAs)
Validates the Bgp peer As number.
|
boolean |
validateRouterId()
Validates the Bgp Router ID configuration.
|
apply, get, get, get, get, get, get, getList, getList, hasOnlyFields, init, isBoolean, isDecimal, isIpAddress, isMacAddress, isNumber, isString, key, node, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, setOrClear, subjectpublic static final String ROUTER_ID
public static final String LOCAL_AS
public static final String MAX_SESSION
public static final String LS_CAPABILITY
public static final String HOLD_TIME
public static final String LARGE_AS_CAPABILITY
public static final String BGP_PEER
public static final String PEER_IP
public static final String REMOTE_AS
public static final String PEER_HOLD_TIME
public static final String PEER_CONNECT_MODE
public static final String PEER_CONNECT_PASSIVE
public static final String PEER_CONNECT_ACTIVE
public boolean isValid()
isValid in class org.onosproject.net.config.Config<org.onosproject.core.ApplicationId>public String routerId()
public int localAs()
public int maxSession()
public boolean lsCapability()
public boolean largeAsCapability()
public short holdTime()
public boolean validateBgpConfiguration()
public boolean validateLocalAs()
public boolean validateRemoteAs(long remoteAs)
public boolean validateRouterId()
public boolean validatePeerHoldTime(long remoteAs)
public boolean validateBgpPeers()
public List<BgpAppConfig.BgpPeerConfig> bgpPeer()
Copyright © 2015. All rights reserved.