def _parse_image_ref(image_href):
    o = urlparse(image_href)
    port = o.port or 80
    host = o.netloc.split(':', 1)[0]
    image_id = int(o.path.split('/')[-1])
    return (image_id, host, port)
Parse an image href into composite parts.
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/image/glance.py/_parse_image_ref