def get_vpn_gateway_by_vpc(cloud_driver, vpc_id):
    """
    Returns the VPN Gateway for a VPC.
    """
    for obj in cloud_driver.ex_list_vpn_gateways():
        if vpc_id == obj.vpc_id:
            return obj