From b8a737ddf4d40534de7e387b490c6751af85d3a3 Mon Sep 17 00:00:00 2001 From: Graham McIntie Date: Sat, 14 Feb 2026 16:16:44 -0600 Subject: [PATCH] Fix Gaiia: subnet -> ipRange on NetworkSiteIpBlock --- lib/towerops/gaiia/client.ex | 3 ++- lib/towerops/gaiia/sync.ex | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/towerops/gaiia/client.ex b/lib/towerops/gaiia/client.ex index bfb94631..e5e466d7 100644 --- a/lib/towerops/gaiia/client.ex +++ b/lib/towerops/gaiia/client.ex @@ -73,7 +73,8 @@ defmodule Towerops.Gaiia.Client do ipBlocks(first: 100) { edges { node { - subnet + id + ipRange } } } diff --git a/lib/towerops/gaiia/sync.ex b/lib/towerops/gaiia/sync.ex index f78902a4..b7ca9830 100644 --- a/lib/towerops/gaiia/sync.ex +++ b/lib/towerops/gaiia/sync.ex @@ -99,7 +99,7 @@ defmodule Towerops.Gaiia.Sync do defp map_network_site(node) do ip_block_edges = get_in(node, ["ipBlocks", "edges"]) || [] - ip_blocks = Enum.map(ip_block_edges, & &1["node"]["subnet"]) + ip_blocks = Enum.map(ip_block_edges, & &1["node"]["ipRange"]) %{ gaiia_id: node["id"],