include last_error from neighbor summary

This commit is contained in:
Matthias Hannig 2018-10-19 16:06:47 +02:00
parent a231635d8f
commit 2fef0e8d79

View File

@ -207,6 +207,7 @@ func parseNeighborSummary(
State: mustString(n["state"], "unknown"),
Uptime: uptime,
Description: mustString(n["description"], "unknown"),
LastError: mustString(n["last_error"], ""),
RoutesReceived: mustInt(n["routes_received"], -1),
RoutesAccepted: mustInt(n["routes_accepted"], -1),
RoutesFiltered: mustInt(n["routes_filtered"], -1),