def get_external_lb_endpoints():
    '\n    Return a list of any external API load-balancer endpoints that have\n    been manually configured.\n    '
    ha_connected = is_flag_set('ha.connected')
    forced_lb_ips = hookenv.config('loadbalancer-ips').split()
    vips = hookenv.config('ha-cluster-vip').split()
    dns_record = hookenv.config('ha-cluster-dns')
    if forced_lb_ips:
        return [(address, STANDARD_API_PORT) for address in forced_lb_ips]
    elif (ha_connected and vips):
        return [(vip, STANDARD_API_PORT) for vip in vips]
    elif (ha_connected and dns_record):
        return [(dns_record, STANDARD_API_PORT)]
    else:
        return []
Return a list of any external API load-balancer endpoints that have
been manually configured.
def get_external_lb_endpoints():
    '\n    Return a list of any external API load-balancer endpoints that have\n    been manually configured.\n    '
    ha_connected = is_flag_set('ha.connected')
    forced_lb_ips = hookenv.config('loadbalancer-ips').split()
    vips = hookenv.config('ha-cluster-vip').split()
    dns_record = hookenv.config('ha-cluster-dns')
    if forced_lb_ips:
        return [(address, STANDARD_API_PORT) for address in forced_lb_ips]
    elif (ha_connected and vips):
        return [(vip, STANDARD_API_PORT) for vip in vips]
    elif (ha_connected and dns_record):
        return [(dns_record, STANDARD_API_PORT)]
    else:
        return []