Class BgpRouter


  • public final class BgpRouter
    extends java.lang.Object
    • 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
      • 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
      • 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
      • 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
      • addGracefulRestart

        public void addGracefulRestart​(int stalepathTime)
                                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
      • getPeerStatus

        public void getPeerStatus​(java.lang.String nbrIp,
                                  long nbrAsNum)
                           throws org.apache.thrift.TException,
                                  BgpRouterException
        Throws:
        org.apache.thrift.TException
        BgpRouterException