'Validate and return the tenant to be associated to the topology.'

def _validate(self, context, tenant_id):

    if (tenant_id == 'None'):
        tenant_id = context.tenant_id
    if ((not context.is_admin) and (tenant_id != context.tenant_id)):
        raise n_exc.NotAuthorized()
    return tenant_id
