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"],