def get_avi_lb_algorithm(self, ns_algorithm):
    '\n        Converts NS LB algorithm to equivalent avi LB algorithm\n        :param ns_algorithm: NS algorithm name\n        :return: Avi LB algorithm enum value\n        '
    avi_algorithm = 'LB_ALGORITHM_LEAST_CONNECTIONS'
    if (ns_algorithm == 'LEASTCONNECTIONS'):
        avi_algorithm = 'LB_ALGORITHM_LEAST_CONNECTIONS'
    elif (ns_algorithm == 'ROUNDROBIN'):
        avi_algorithm = 'LB_ALGORITHM_ROUND_ROBIN'
    elif (ns_algorithm in ['LEASTRESPONSETIME', 'LRTM']):
        avi_algorithm = 'LB_ALGORITHM_FASTEST_RESPONSE'
    elif (ns_algorithm == 'SOURCEIPHASH'):
        avi_algorithm = 'LB_ALGORITHM_CONSISTENT_HASH'
    elif (ns_algorithm == 'URLHASH'):
        avi_algorithm = 'LB_ALGORITHM_CONSISTENT_HASH_URI'
    return avi_algorithm
Converts NS LB algorithm to equivalent avi LB algorithm
:param ns_algorithm: NS algorithm name
:return: Avi LB algorithm enum value
def get_avi_lb_algorithm(self, ns_algorithm):
    '\n        Converts NS LB algorithm to equivalent avi LB algorithm\n        :param ns_algorithm: NS algorithm name\n        :return: Avi LB algorithm enum value\n        '
    avi_algorithm = 'LB_ALGORITHM_LEAST_CONNECTIONS'
    if (ns_algorithm == 'LEASTCONNECTIONS'):
        avi_algorithm = 'LB_ALGORITHM_LEAST_CONNECTIONS'
    elif (ns_algorithm == 'ROUNDROBIN'):
        avi_algorithm = 'LB_ALGORITHM_ROUND_ROBIN'
    elif (ns_algorithm in ['LEASTRESPONSETIME', 'LRTM']):
        avi_algorithm = 'LB_ALGORITHM_FASTEST_RESPONSE'
    elif (ns_algorithm == 'SOURCEIPHASH'):
        avi_algorithm = 'LB_ALGORITHM_CONSISTENT_HASH'
    elif (ns_algorithm == 'URLHASH'):
        avi_algorithm = 'LB_ALGORITHM_CONSISTENT_HASH_URI'
    return avi_algorithm