diff --git a/lib/towerops/gaiia.ex b/lib/towerops/gaiia.ex index d1ccdeab..c71b9c36 100644 --- a/lib/towerops/gaiia.ex +++ b/lib/towerops/gaiia.ex @@ -264,8 +264,8 @@ defmodule Towerops.Gaiia do |> join(:inner, [si], sd in SnmpDevice, on: si.snmp_device_id == sd.id) |> join(:inner, [_si, sd], d in Device, on: sd.device_id == d.id) |> where([_si, _sd, d], d.organization_id == ^organization_id) - |> where([si], not is_nil(si.mac_address) and si.mac_address != "") - |> select([si, sd], {sd.device_id, si.mac_address}) + |> where([si], not is_nil(si.if_phys_address) and si.if_phys_address != "") + |> select([si, sd], {sd.device_id, si.if_phys_address}) |> Repo.all() |> Enum.group_by(fn {device_id, _mac} -> device_id end, fn {_device_id, mac} -> normalize_mac(mac) end) end diff --git a/lib/towerops_web/live/org/gaiia_reconciliation_live.html.heex b/lib/towerops_web/live/org/gaiia_reconciliation_live.html.heex index 953c6114..c89856e5 100644 --- a/lib/towerops_web/live/org/gaiia_reconciliation_live.html.heex +++ b/lib/towerops_web/live/org/gaiia_reconciliation_live.html.heex @@ -139,10 +139,10 @@ class="inline-flex items-center gap-1.5 rounded-lg bg-indigo-600 px-4 py-2 text-sm font-medium text-white hover:bg-indigo-700" > <.icon name="hero-bolt" class="h-4 w-4" /> - {t("Auto-Match by IP")} + {t("Auto-Match All")} - {t("Links devices to Gaiia items with matching IP addresses.")} + {t("Links by MAC, IP, or site assignment.")}