Class BgpRouter
- java.lang.Object
-
- org.opendaylight.netvirt.bgpmanager.thrift.client.BgpRouter
-
public final class BgpRouter extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAddressFamily(java.lang.String nbrIp, af_afi afi, af_safi safi)
void
addBfd(int detectMult, int minRx, int minTx, boolean multiHop)
void
addEbgpMultihop(java.lang.String nbrIp, int nhops)
void
addGracefulRestart(int stalepathTime)
void
addNeighbor(java.lang.String nbrIp, long nbrAsNum, @Nullable java.lang.String md5Secret)
void
addPrefix(java.lang.String rd, java.lang.String prefix, java.lang.String nexthop, int label, int l3vni, int l2vni, protocol_type protocolType, int ethtag, java.lang.String esi, java.lang.String macaddress, encap_type encapType, java.lang.String routermac)
void
addUpdateSource(java.lang.String nbrIp, java.lang.String srcIp)
void
addVrf(LayerType layerType, java.lang.String rd, java.util.List<java.lang.String> irts, java.util.List<java.lang.String> erts, long afi, long safi)
void
configServerUpdated()
boolean
connect(java.lang.String bgpHost, int bgpPort)
void
delAddressFamily(java.lang.String nbrIp, af_afi afi, af_safi safi)
void
delayEOR(int delay)
void
delBfd()
void
delEbgpMultihop(java.lang.String nbrIp)
void
delGracefulRestart()
void
delNeighbor(java.lang.String nbrIp)
void
delPrefix(java.lang.String rd, java.lang.String prefix)
void
delUpdateSource(java.lang.String nbrIp)
void
delVrf(java.lang.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()
void
getPeerStatus(java.lang.String nbrIp, long nbrAsNum)
long
getStartTS()
org.apache.thrift.transport.TTransport
getTransport()
int
initRibSync(BgpSyncHandle handle)
boolean
isBgpConnected()
void
multipaths(java.lang.String rd, int maxpath)
static BgpRouter
newInstance(java.util.function.Supplier<Bgp> bgpConfigSupplier, java.util.function.BooleanSupplier isEntityBGPOwner, org.opendaylight.ovsdb.utils.mdsal.utils.TransactionHistory transactionHistory)
void
sendEOR()
static void
setConfigServerIP(java.lang.String configServerIP)
static void
setConfigServerPort(int configServerPort)
void
setConnectTS(long connectTS)
void
setLastConnectedTS(long lastConnectedTS)
void
setLogging(java.lang.String fileName, java.lang.String debugLevel)
void
setStartTS(long startTS)
void
startBgp(long asNum, java.lang.String rtrId, int bgpKaTime, int bgpHoldTime, int stalepathTime, boolean announceFbit)
void
stopBgp(long asNum)
-
-
-
Method Detail
-
newInstance
public static BgpRouter newInstance(java.util.function.Supplier<Bgp> bgpConfigSupplier, java.util.function.BooleanSupplier isEntityBGPOwner, org.opendaylight.ovsdb.utils.mdsal.utils.TransactionHistory transactionHistory)
-
getTransport
public org.apache.thrift.transport.TTransport getTransport()
-
getLastConnectedTS
public long getLastConnectedTS()
-
setLastConnectedTS
public void setLastConnectedTS(long lastConnectedTS)
-
getConnectTS
public long getConnectTS()
-
setConnectTS
public void setConnectTS(long connectTS)
-
getStartTS
public long getStartTS()
-
setStartTS
public void setStartTS(long startTS)
-
configServerUpdated
public void configServerUpdated()
-
disconnect
public void disconnect()
-
connect
public boolean connect(java.lang.String bgpHost, int bgpPort)
-
isBgpConnected
public boolean isBgpConnected()
-
setConfigServerIP
public static void setConfigServerIP(java.lang.String configServerIP)
-
setConfigServerPort
public static void setConfigServerPort(int configServerPort)
-
startBgp
public void startBgp(long asNum, java.lang.String rtrId, int bgpKaTime, int bgpHoldTime, int stalepathTime, boolean announceFbit) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
stopBgp
public void stopBgp(long asNum) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addNeighbor
public void addNeighbor(java.lang.String nbrIp, long nbrAsNum, @Nullable java.lang.String md5Secret) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delNeighbor
public void delNeighbor(java.lang.String nbrIp) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addVrf
public void addVrf(LayerType layerType, java.lang.String rd, java.util.List<java.lang.String> irts, java.util.List<java.lang.String> erts, long afi, long safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delVrf
public void delVrf(java.lang.String rd, long afi, long safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addPrefix
public void addPrefix(java.lang.String rd, java.lang.String prefix, java.lang.String nexthop, int label, int l3vni, int l2vni, protocol_type protocolType, int ethtag, java.lang.String esi, java.lang.String macaddress, encap_type encapType, java.lang.String routermac) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delPrefix
public void delPrefix(java.lang.String rd, java.lang.String prefix) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addBfd
public void addBfd(int detectMult, int minRx, int minTx, boolean multiHop) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delBfd
public void delBfd() throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
initRibSync
public int initRibSync(BgpSyncHandle handle) throws BgpRouterException
- Throws:
BgpRouterException
-
endRibSync
public int endRibSync(BgpSyncHandle handle) throws BgpRouterException
- Throws:
BgpRouterException
-
doRibSync
public Routes doRibSync(BgpSyncHandle handle, af_afi afi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
setLogging
public void setLogging(java.lang.String fileName, java.lang.String debugLevel) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addEbgpMultihop
public void addEbgpMultihop(java.lang.String nbrIp, int nhops) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delEbgpMultihop
public void delEbgpMultihop(java.lang.String nbrIp) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addUpdateSource
public void addUpdateSource(java.lang.String nbrIp, java.lang.String srcIp) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delUpdateSource
public void delUpdateSource(java.lang.String nbrIp) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addAddressFamily
public void addAddressFamily(java.lang.String nbrIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delAddressFamily
public void delAddressFamily(java.lang.String nbrIp, af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
addGracefulRestart
public void addGracefulRestart(int stalepathTime) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delGracefulRestart
public void delGracefulRestart() throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
enableMultipath
public void enableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
disableMultipath
public void disableMultipath(af_afi afi, af_safi safi) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
multipaths
public void multipaths(java.lang.String rd, int maxpath) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
sendEOR
public void sendEOR() throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
delayEOR
public void delayEOR(int delay) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
getPeerStatus
public void getPeerStatus(java.lang.String nbrIp, long nbrAsNum) throws org.apache.thrift.TException, BgpRouterException
- Throws:
org.apache.thrift.TException
BgpRouterException
-
-