public final class BgpRouter extends Object
Modifier and Type | Method and Description |
---|---|
void |
addAddressFamily(String nbrIp,
af_afi afi,
af_safi safi) |
void |
addEbgpMultihop(String nbrIp,
int nhops) |
void |
addGracefulRestart(int stalepathTime) |
void |
addNeighbor(String nbrIp,
long nbrAsNum,
String md5Secret) |
void |
addPrefix(String rd,
String prefix,
String nexthop,
int label,
int l3vni,
int l2vni,
protocol_type protocolType,
int ethtag,
String esi,
String macaddress,
encap_type encapType,
String routermac) |
void |
addUpdateSource(String nbrIp,
String srcIp) |
void |
addVrf(LayerType layerType,
String rd,
List<String> irts,
List<String> erts) |
void |
configServerUpdated() |
boolean |
connect(String bgpHost,
int bgpPort) |
void |
delAddressFamily(String nbrIp,
af_afi afi,
af_safi safi) |
void |
delayEOR(int delay) |
void |
delEbgpMultihop(String nbrIp) |
void |
delGracefulRestart() |
void |
delNeighbor(String nbrIp) |
void |
delPrefix(String rd,
String prefix) |
void |
delUpdateSource(String nbrIp) |
void |
delVrf(String rd,
long afi,
long safi) |
void |
disableMultipath(af_afi afi,
af_safi safi) |
void |
disconnect() |
Routes |
doRibSync(BgpSyncHandle handle,
af_afi afi) |
void |
enableMultipath(af_afi afi,
af_safi safi) |
int |
endRibSync(BgpSyncHandle handle) |
long |
getConnectTS() |
long |
getLastConnectedTS() |
long |
getStartTS() |
org.apache.thrift.transport.TTransport |
getTransport() |
int |
initRibSync(BgpSyncHandle handle) |
boolean |
isBgpConnected() |
void |
multipaths(String rd,
int maxpath) |
static BgpRouter |
newInstance(Supplier<Bgp> bgpConfigSupplier,
BooleanSupplier isEntityBGPOwner) |
void |
sendEOR() |
void |
setConnectTS(long connectTS) |
void |
setLastConnectedTS(long lastConnectedTS) |
void |
setLogging(String fileName,
String debugLevel) |
void |
setStartTS(long startTS) |
void |
startBgp(long asNum,
String rtrId,
int stalepathTime,
boolean announceFbit) |
void |
stopBgp(long asNum) |
public static BgpRouter newInstance(Supplier<Bgp> bgpConfigSupplier, BooleanSupplier isEntityBGPOwner)
public org.apache.thrift.transport.TTransport getTransport()
public long getLastConnectedTS()
public void setLastConnectedTS(long lastConnectedTS)
public long getConnectTS()
public void setConnectTS(long connectTS)
public long getStartTS()
public void setStartTS(long startTS)
public void configServerUpdated()
public void disconnect()
public boolean connect(String bgpHost, int bgpPort)
public boolean isBgpConnected()
public void startBgp(long asNum, String rtrId, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void stopBgp(long asNum) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addNeighbor(String nbrIp, long nbrAsNum, @Nullable String md5Secret) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delNeighbor(String nbrIp) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addVrf(LayerType layerType, String rd, List<String> irts, List<String> erts) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delVrf(String rd, long afi, long safi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addPrefix(String rd, String prefix, String nexthop, int label, int l3vni, int l2vni, protocol_type protocolType, int ethtag, String esi, String macaddress, encap_type encapType, String routermac) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delPrefix(String rd, String prefix) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public int initRibSync(BgpSyncHandle handle) throws BgpRouterException
BgpRouterException
public int endRibSync(BgpSyncHandle handle) throws BgpRouterException
BgpRouterException
public Routes doRibSync(BgpSyncHandle handle, af_afi afi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void setLogging(String fileName, String debugLevel) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addEbgpMultihop(String nbrIp, int nhops) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delEbgpMultihop(String nbrIp) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addUpdateSource(String nbrIp, String srcIp) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delUpdateSource(String nbrIp) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addAddressFamily(String nbrIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delAddressFamily(String nbrIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void addGracefulRestart(int stalepathTime) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delGracefulRestart() throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void multipaths(String rd, int maxpath) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void sendEOR() throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
public void delayEOR(int delay) throws org.apache.thrift.TException, BgpRouterException
org.apache.thrift.TException
BgpRouterException
Copyright © 2019 OpenDaylight. All rights reserved.