Developing lightweight computation at the DSG edge

Commit d7fc5652 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[goclidote] Include the SNMP names when reading a device


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 4c8cb122
......@@ -315,6 +315,8 @@ func ReadDevicesFromAntidote(DatabaseHost string, DatabasePort int) []cnml.Devic
}
time.Sleep(time.Millisecond)
thisDev.Addresses = AntidoteReadItemsFromSetInBucket(fmt.Sprintf("device-%d", thisDevID), "ipv4s", DatabaseHost, DatabasePort)
time.Sleep(time.Millisecond)
thisDev.SNMPNames = AntidoteReadItemsFromSetInBucket(fmt.Sprintf("device-%d", thisDevID), "snmpnames", DatabaseHost, DatabasePort)
devices = append(devices, thisDev)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment