Developing lightweight computation at the DSG edge

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

[monitor-snmp] Deduplicate error messages


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 6916e8f6
......@@ -216,7 +216,7 @@ func getSNMPData(IPAddress string) []SNMPInterfaceData {
fmt.Println(" Trying", fmt.Sprintf("%s.%d", namesPrefix, i+1))
result, err = snmp.Default.Get(aoids) // Get() accepts up to g.MAX_OIDS
errCheck(err, ERROR, fmt.Sprintf("Device at %s is reporting an incorrect number of interfaces", IPAddress))
errCheck(err, ERROR, fmt.Sprintf("Device at %s is reporting an incorrect traffic info answer", IPAddress))
if len(result.Variables) == 3 {
var thisInterfaceSNMPData SNMPInterfaceData
......
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