

def _update_vpn_routes(context, neutron, cleaner, route_table, subnets):
    vpn_gateway = ec2utils.get_attached_gateway(context, route_table['vpc_id'], 'vgw')
    if (not vpn_gateway):
        return
    _reset_vpn_connections(context, neutron, cleaner, vpn_gateway, route_tables=[route_table], subnets=subnets)

dataset/ETHPy150Open openstack/ec2-api/ec2api/api/vpn_connection.py _update_vpn_routes/original