Add site id and name to network tables

This commit is contained in:
David Newhall II 2019-06-05 18:00:11 -07:00
parent d2519412c4
commit 03be1deae0
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -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,