def get_nova_sync_client(self, kwargs): """ kwargs = { 'username': CONF.nova_admin_username, 'password': CONF.nova_admin_password, 'tenant': CONF.nova_admin_tenant_name, 'auth_url': CONF.keystone_auth_url, 'region_name': CONF.proxy_region_name } :param args: :return: """ req_context = compute_context.RequestContext(**kwargs) openstack_clients = clients.OpenStackClients(req_context) return openstack_clients.nova()
def get_neutron_client(self, kwargs): req_context = compute_context.RequestContext(**kwargs) openstack_clients = clients.OpenStackClients(req_context) return openstack_clients.neutron()