Exemplo n.º 1
0
 def __init__(self, network, token, tenant_name, auth=None):
     session = sessions.cache().get_session(sessions.SESSION_TYPE_NEUTRON)
     if auth is None:
         auth = keystone.token_auth(token=token, project_name=tenant_name)
     self.neutron = neutron_cli.Client('2.0', session=session, auth=auth,
                                       region_name=CONF.os_region_name)
     self.network = network
Exemplo n.º 2
0
 def __init__(self, network, token, tenant_name, auth=None):
     session = sessions.cache().get_session(sessions.SESSION_TYPE_NEUTRON)
     if auth is None:
         auth = keystone.token_auth(token=token, project_name=tenant_name)
     self.neutron = neutron_cli.Client('2.0',
                                       session=session,
                                       auth=auth,
                                       region_name=CONF.os_region_name)
     self.network = network
Exemplo n.º 3
0
 def __init__(self, network, token, tenant_name, auth=None):
     if not auth:
         auth = keystone.token_auth(token=token, project_name=tenant_name)
     self.neutron = client(auth)
     self.network = network
Exemplo n.º 4
0
 def __init__(self, network, token, tenant_name, auth=None):
     if not auth:
         auth = keystone.token_auth(token=token, project_name=tenant_name)
     self.neutron = client(auth)
     self.network = network