def convert_persistance_prof(self, vs, name, tenant_ref):
    '\n        This function defines that it convert the persistent profile and\n        return that profile\n        :param vs: object of lb vs or pool\n        :param name: name of application persteance profile\n        :param tenant_ref: reference of tenant\n        :return: application persistent profile\n        '
    profile = None
    persistenceType = vs.get('persistenceType', '')
    if (persistenceType == 'COOKIEINSERT'):
        timeout = vs.get('timeout', 2)
        profile = {'http_cookie_persistence_profile': {'always_send_cookie': False}, 'persistence_type': 'PERSISTENCE_TYPE_HTTP_COOKIE', 'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'name': name}
        if (int(timeout) > 0):
            profile['http_cookie_persistence_profile']['timeout'] = timeout
    elif (persistenceType == 'SOURCEIP'):
        timeout = vs.get('timeout', 120)
        timeout = (int(timeout) / 60)
        if (timeout < 1):
            timeout = 1
        profile = {'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'persistence_type': 'PERSISTENCE_TYPE_CLIENT_IP_ADDRESS', 'ip_persistence_profile': {'ip_persistent_timeout': timeout}, 'name': name}
    elif (persistenceType == 'SSLSESSION'):
        profile = {'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'persistence_type': 'PERSISTENCE_TYPE_TLS', 'name': name}
    profile['tenant_ref'] = tenant_ref
    return profile
This function defines that it convert the persistent profile and
return that profile
:param vs: object of lb vs or pool
:param name: name of application persteance profile
:param tenant_ref: reference of tenant
:return: application persistent profile
def convert_persistance_prof(self, vs, name, tenant_ref):
    '\n        This function defines that it convert the persistent profile and\n        return that profile\n        :param vs: object of lb vs or pool\n        :param name: name of application persteance profile\n        :param tenant_ref: reference of tenant\n        :return: application persistent profile\n        '
    profile = None
    persistenceType = vs.get('persistenceType', )
    if (persistenceType == 'COOKIEINSERT'):
        timeout = vs.get('timeout', 2)
        profile = {'http_cookie_persistence_profile': {'always_send_cookie': False}, 'persistence_type': 'PERSISTENCE_TYPE_HTTP_COOKIE', 'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'name': name}
        if (int(timeout) > 0):
            profile['http_cookie_persistence_profile']['timeout'] = timeout
    elif (persistenceType == 'SOURCEIP'):
        timeout = vs.get('timeout', 120)
        timeout = (int(timeout) / 60)
        if (timeout < 1):
            timeout = 1
        profile = {'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'persistence_type': 'PERSISTENCE_TYPE_CLIENT_IP_ADDRESS', 'ip_persistence_profile': {'ip_persistent_timeout': timeout}, 'name': name}
    elif (persistenceType == 'SSLSESSION'):
        profile = {'server_hm_down_recovery': 'HM_DOWN_PICK_NEW_SERVER', 'persistence_type': 'PERSISTENCE_TYPE_TLS', 'name': name}
    profile['tenant_ref'] = tenant_ref
    return profile