tempest/scenario/test_cross_tenant_connectivity.py
def _create_server(self, name, tenant, security_groups=None):
        """
        creates a server and assigns to security group
        """
        self._set_compute_context(tenant)
        if security_groups is None:
            security_groups = [tenant.security_groups['default'].name]
        create_kwargs = {
            'nics': [
                {'net-id': tenant.network.id},
            ],
            'key_name': self.keypairs[tenant.tenant_id].name,
            'security_groups': security_groups,
            'tenant_id': tenant.tenant_id
        }
        server = self.create_server(name=name, create_kwargs=create_kwargs)
        return server

        creates a server and assigns to security group
        
creates a server and assigns to security group
creates a server and assigns to security group
def _create_server(self, name, tenant, security_groups=None):
        self._set_compute_context(tenant)
        if security_groups is None:
            security_groups = [tenant.security_groups['default'].name]
        create_kwargs = {
            'nics': [
                {'net-id': tenant.network.id},
            ],
            'key_name': self.keypairs[tenant.tenant_id].name,
            'security_groups': security_groups,
            'tenant_id': tenant.tenant_id
        }
        server = self.create_server(name=name, create_kwargs=create_kwargs)
        return server
def _create_server ( self , name , tenant , security_groups = None ) : self . _set_compute_context ( tenant ) if security_groups is None : security_groups = [ tenant . security_groups [ 'default' ] . name ] create_kwargs = { 'nics' : [ { 'net-id' : tenant . network . id } , ] , 'key_name' : self . keypairs [ tenant . tenant_id ] . name , 'security_groups' : security_groups , 'tenant_id' : tenant . tenant_id } server = self . create_server ( name = name , create_kwargs = create_kwargs ) return server
creates a server and assigns to security group
creates a server and assigns to security group
"""
        creates a server and assigns to security group
        """
self
name
tenant
security_groups