Class BgpConfigurator.AsyncClient

    • Constructor Detail

      • AsyncClient

        public AsyncClient​(org.apache.thrift.protocol.TProtocolFactory protocolFactory,
                           org.apache.thrift.async.TAsyncClientManager clientManager,
                           org.apache.thrift.transport.TNonblockingTransport transport)
    • Method Detail

      • startBgp

        public void startBgp​(long asNumber,
                             java.lang.String routerId,
                             int port,
                             int holdTime,
                             int keepAliveTime,
                             int stalepathTime,
                             boolean announceFbit,
                             org.apache.thrift.async.AsyncMethodCallback resultHandler)
                      throws org.apache.thrift.TException
        Specified by:
        startBgp in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • stopBgp

        public void stopBgp​(long asNumber,
                            org.apache.thrift.async.AsyncMethodCallback resultHandler)
                     throws org.apache.thrift.TException
        Specified by:
        stopBgp in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • createPeer

        public void createPeer​(java.lang.String ipAddress,
                               long asNumber,
                               org.apache.thrift.async.AsyncMethodCallback resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        createPeer in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • setPeerSecret

        public void setPeerSecret​(java.lang.String ipAddress,
                                  java.lang.String rfc2385_sharedSecret,
                                  org.apache.thrift.async.AsyncMethodCallback resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        setPeerSecret in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • deletePeer

        public void deletePeer​(java.lang.String ipAddress,
                               org.apache.thrift.async.AsyncMethodCallback resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        deletePeer in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • addVrf

        public void addVrf​(layer_type l_type,
                           java.lang.String rd,
                           java.util.List<java.lang.String> irts,
                           java.util.List<java.lang.String> erts,
                           af_afi afi,
                           af_safi safi,
                           org.apache.thrift.async.AsyncMethodCallback resultHandler)
                    throws org.apache.thrift.TException
        Specified by:
        addVrf in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • delVrf

        public void delVrf​(java.lang.String rd,
                           af_afi afi,
                           af_safi safi,
                           org.apache.thrift.async.AsyncMethodCallback resultHandler)
                    throws org.apache.thrift.TException
        Specified by:
        delVrf in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • pushRoute

        public void pushRoute​(protocol_type p_type,
                              java.lang.String prefix,
                              java.lang.String nexthop,
                              java.lang.String rd,
                              long ethtag,
                              java.lang.String esi,
                              java.lang.String macaddress,
                              int l3label,
                              int l2label,
                              encap_type enc_type,
                              java.lang.String routermac,
                              af_afi afi,
                              org.apache.thrift.async.AsyncMethodCallback resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        pushRoute in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • withdrawRoute

        public void withdrawRoute​(protocol_type p_type,
                                  java.lang.String prefix,
                                  java.lang.String rd,
                                  long ethtag,
                                  java.lang.String esi,
                                  java.lang.String macaddress,
                                  af_afi afi,
                                  org.apache.thrift.async.AsyncMethodCallback resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        withdrawRoute in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • setEbgpMultihop

        public void setEbgpMultihop​(java.lang.String peerIp,
                                    int nHops,
                                    org.apache.thrift.async.AsyncMethodCallback resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        setEbgpMultihop in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • unsetEbgpMultihop

        public void unsetEbgpMultihop​(java.lang.String peerIp,
                                      org.apache.thrift.async.AsyncMethodCallback resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        unsetEbgpMultihop in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • setUpdateSource

        public void setUpdateSource​(java.lang.String peerIp,
                                    java.lang.String srcIp,
                                    org.apache.thrift.async.AsyncMethodCallback resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        setUpdateSource in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • unsetUpdateSource

        public void unsetUpdateSource​(java.lang.String peerIp,
                                      org.apache.thrift.async.AsyncMethodCallback resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        unsetUpdateSource in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • enableAddressFamily

        public void enableAddressFamily​(java.lang.String peerIp,
                                        af_afi afi,
                                        af_safi safi,
                                        org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                 throws org.apache.thrift.TException
        Specified by:
        enableAddressFamily in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • disableAddressFamily

        public void disableAddressFamily​(java.lang.String peerIp,
                                         af_afi afi,
                                         af_safi safi,
                                         org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                  throws org.apache.thrift.TException
        Specified by:
        disableAddressFamily in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • setLogConfig

        public void setLogConfig​(java.lang.String logFileName,
                                 java.lang.String logLevel,
                                 org.apache.thrift.async.AsyncMethodCallback resultHandler)
                          throws org.apache.thrift.TException
        Specified by:
        setLogConfig in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • enableGracefulRestart

        public void enableGracefulRestart​(int stalepathTime,
                                          org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                   throws org.apache.thrift.TException
        Specified by:
        enableGracefulRestart in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • disableGracefulRestart

        public void disableGracefulRestart​(org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                    throws org.apache.thrift.TException
        Specified by:
        disableGracefulRestart in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • getRoutes

        public void getRoutes​(protocol_type p_type,
                              int optype,
                              int winSize,
                              af_afi afi,
                              org.apache.thrift.async.AsyncMethodCallback resultHandler)
                       throws org.apache.thrift.TException
        Specified by:
        getRoutes in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • enableMultipath

        public void enableMultipath​(af_afi afi,
                                    af_safi safi,
                                    org.apache.thrift.async.AsyncMethodCallback resultHandler)
                             throws org.apache.thrift.TException
        Specified by:
        enableMultipath in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • disableMultipath

        public void disableMultipath​(af_afi afi,
                                     af_safi safi,
                                     org.apache.thrift.async.AsyncMethodCallback resultHandler)
                              throws org.apache.thrift.TException
        Specified by:
        disableMultipath in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • multipaths

        public void multipaths​(java.lang.String rd,
                               int maxPath,
                               org.apache.thrift.async.AsyncMethodCallback resultHandler)
                        throws org.apache.thrift.TException
        Specified by:
        multipaths in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • enableEORDelay

        public void enableEORDelay​(int delay,
                                   org.apache.thrift.async.AsyncMethodCallback resultHandler)
                            throws org.apache.thrift.TException
        Specified by:
        enableEORDelay in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • sendEOR

        public void sendEOR​(org.apache.thrift.async.AsyncMethodCallback resultHandler)
                     throws org.apache.thrift.TException
        Specified by:
        sendEOR in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • enableBFDFailover

        public void enableBFDFailover​(BfdConfigData bfdConfig,
                                      org.apache.thrift.async.AsyncMethodCallback resultHandler)
                               throws org.apache.thrift.TException
        Specified by:
        enableBFDFailover in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • disableBFDFailover

        public void disableBFDFailover​(org.apache.thrift.async.AsyncMethodCallback resultHandler)
                                throws org.apache.thrift.TException
        Specified by:
        disableBFDFailover in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException
      • getPeerStatus

        public void getPeerStatus​(java.lang.String ipAddress,
                                  long asNumber,
                                  org.apache.thrift.async.AsyncMethodCallback resultHandler)
                           throws org.apache.thrift.TException
        Specified by:
        getPeerStatus in interface BgpConfigurator.AsyncIface
        Throws:
        org.apache.thrift.TException