The vmware_nsx.plugins.nsx_v3.utils Module

class vmware_nsx.plugins.nsx_v3.utils.DbCertProvider

Bases: vmware_nsxlib.v3.client_cert.ClientCertProvider

Write cert data from DB to file and delete after use

New provider object with random filename is created for each request. This is not most efficient, but the safest way to avoid race conditions, since backend connections can occur both before and after neutron fork, and several concurrent requests can occupy the same thread. Note that new cert filename for each request does not result in new connection for each request (at least for now..)

EXPIRATION_ALERT_DAYS = 30
filename()
vmware_nsx.plugins.nsx_v3.utils.get_client_cert_provider()
vmware_nsx.plugins.nsx_v3.utils.get_nsxlib_wrapper(nsx_username=None, nsx_password=None, basic_auth=False)