NSX rate limit support

In case of too many requests in a short period of time, the NSX will
return response 429.
In this case (if configured) the nsxlib client will retry sending the request.

This option is controlled by a new parameter in the nsxlib config
rate_limit_retry which is enabled by default.

Change-Id: I20fca36d553e1e74da61292342a87247b53b5d13
This commit is contained in:
Adit Sarfaty
2018-01-01 13:27:35 +02:00
parent 48c8136448
commit b17cd2b6ab
6 changed files with 54 additions and 3 deletions

View File

@@ -101,6 +101,10 @@ class StaleRevision(ManagerError):
pass
class TooManyRequests(ManagerError):
pass
class ClientCertificateNotTrusted(ManagerError):
message = _("Certificate not trusted")