From 03be1deae06ef1ebf20e01195397ddc190a20935 Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Wed, 5 Jun 2019 18:00:11 -0700 Subject: [PATCH] Add site id and name to network tables --- core/unifi/uap_influx.go | 2 ++ core/unifi/usg_influx.go | 1 + 2 files changed, 3 insertions(+) diff --git a/core/unifi/uap_influx.go b/core/unifi/uap_influx.go index 53a369f3..e0945ed1 100644 --- a/core/unifi/uap_influx.go +++ b/core/unifi/uap_influx.go @@ -232,6 +232,8 @@ func (u UAP) Points() ([]*influx.Point, error) { tags["vap_id"] = s.ID tags["vap_name"] = s.Name tags["wlanconf_id"] = s.WlanconfID + tags["site_id"] = s.SiteID + tags["site_name"] = s.SiteName fields["ccq"] = s.Ccq fields["essid"] = s.Essid fields["extchannel"] = s.Extchannel diff --git a/core/unifi/usg_influx.go b/core/unifi/usg_influx.go index 1ab176ae..bfd8ecc9 100644 --- a/core/unifi/usg_influx.go +++ b/core/unifi/usg_influx.go @@ -154,6 +154,7 @@ func (u USG) Points() ([]*influx.Point, error) { "is_nat": p.IsNat.Txt, "networkgroup": p.Networkgroup, "site_id": p.SiteID, + "site_name": p.SiteName, } fields := map[string]interface{}{ "dhcpd_ip_1": p.DhcpdIP1,