Add VPN-Router Prefix to Routers instead of RiFu
All checks were successful
continuous-integration/drone/tag Build is passing

This commit is contained in:
Stefan Hoffmann 2023-03-20 16:26:16 +01:00
parent a3ecb2d8ae
commit 75c24e389b

View File

@ -162,8 +162,9 @@ func processUNMSAPIRouter() []node {
"nodeid": strings.ReplaceAll(dev.Identification.MAC, ":", ""), "nodeid": strings.ReplaceAll(dev.Identification.MAC, ":", ""),
} }
fields := map[string]interface{}{ fields := map[string]interface{}{
"cpu": statistics.CPU[t].Y, "cpu": statistics.CPU[t].Y,
"ram": statistics.RAM[t].Y, "load": statistics.CPU[t].Y,
"ram": statistics.RAM[t].Y,
//hier fehlen noch die interfaces //hier fehlen noch die interfaces
} }
slice := strconv.Itoa(statistics.CPU[t].X) slice := strconv.Itoa(statistics.CPU[t].X)
@ -265,7 +266,7 @@ func processUNMSAPIRouter() []node {
MAC: dev.Identification.MAC, MAC: dev.Identification.MAC,
Adresses: UnmsGetAddresses(details.IPAddress), Adresses: UnmsGetAddresses(details.IPAddress),
Domain: currentDevice.Domain, Domain: currentDevice.Domain,
Hostname: "[RiFu] " + details.Identification.Name, Hostname: "[VPN-Router] " + details.Identification.Name,
Owner: "Freifunk Rhein-Sieg", Owner: "Freifunk Rhein-Sieg",
Firmware: firmware{ Firmware: firmware{
Base: "Ubiquiti - Stock", Base: "Ubiquiti - Stock",